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

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

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