作者 景龙
1 个管道 的构建 通过 耗费 1 秒

修改星球影院独角星球显示在全部选择中

@@ -145,7 +145,7 @@ class RegionController extends HomeBaseController @@ -145,7 +145,7 @@ class RegionController extends HomeBaseController
145 $position['city_id'] = $city_id; 145 $position['city_id'] = $city_id;
146 $position['category_id'] = CityCategoryModel::xqyy; 146 $position['category_id'] = CityCategoryModel::xqyy;
147 $field = 'id,post_title,framing,release_time,city_id,more,thumbnail'; 147 $field = 'id,post_title,framing,release_time,city_id,more,thumbnail';
148 - $res = $star->getChildArticlePage($position,$field); 148 + $res = $star->getChildArticlePage($position,$field,'-1');
149 foreach($res['data']['data'] as &$value){ 149 foreach($res['data']['data'] as &$value){
150 $more = json_decode($value['more'],true); 150 $more = json_decode($value['more'],true);
151 $value['video'] = isset($more['video']) && !empty($more['video'])?$more['video']:''; 151 $value['video'] = isset($more['video']) && !empty($more['video'])?$more['video']:'';
@@ -133,6 +133,9 @@ class StarController extends HomeBaseController @@ -133,6 +133,9 @@ class StarController extends HomeBaseController
133 public function getChildArticlePage($position,$field,$limit = ''){ 133 public function getChildArticlePage($position,$field,$limit = ''){
134 $pre = CityCategoryModel::pre; 134 $pre = CityCategoryModel::pre;
135 $limit = empty($limit)?$this->more_limit:$limit; 135 $limit = empty($limit)?$this->more_limit:$limit;
  136 + if($limit == -1){
  137 + $limit = 0;
  138 + }
136 $post_id = Db::table($pre.'portal_category_post') 139 $post_id = Db::table($pre.'portal_category_post')
137 ->whereIn('category_id',$position['category_id']) 140 ->whereIn('category_id',$position['category_id'])
138 ->field('post_id') 141 ->field('post_id')