...
|
...
|
@@ -25,7 +25,7 @@ class RegionController extends HomeBaseController |
|
|
$res_xqyy = $this->getChildArticle($position,$field,1);
|
|
|
foreach($res_xqyy as &$value){
|
|
|
$more = json_decode($value['more'],true);
|
|
|
$value['video'] = $more['video'];
|
|
|
$value['video'] = isset($more['video']) && !empty($more['video'])?$more['video']:'';
|
|
|
}
|
|
|
if($res_xqyy){
|
|
|
$res_xqyy = $res_xqyy[0];
|
...
|
...
|
@@ -47,7 +47,7 @@ class RegionController extends HomeBaseController |
|
|
$res_xqgs = $this->getChildArticle($position,$field,$this->index_limit);
|
|
|
foreach($res_xqgs as &$value){
|
|
|
$more = json_decode($value['more'],true);
|
|
|
$value['audio'] = $more['audio'];
|
|
|
$value['audio'] = isset($more['audio']) && !empty($more['audio'])?$more['audio']:'';
|
|
|
}
|
|
|
$this->assign('res_xqgs',$res_xqgs);
|
|
|
|
...
|
...
|
@@ -138,18 +138,26 @@ class RegionController extends HomeBaseController |
|
|
//星球影院更多(按照城市查询)
|
|
|
public function getMoreVideo(){
|
|
|
$page = $this->request->param('page',1,'intval');
|
|
|
$city_id = $this->request->param('city_id',1,'intval');
|
|
|
$city_id = $this->request->param('city_id',0,'intval');
|
|
|
$position['city_id'] = $city_id;
|
|
|
$position['category_id'] = CityCategoryModel::xqyy;
|
|
|
$field = 'id,post_title,framing,release_time,city_id,more';
|
|
|
$field = 'id,post_title,framing,release_time,city_id,more,thumbnail';
|
|
|
$star = new StarController();
|
|
|
$res = $star->getChildArticlePage($position,$field,$page);
|
|
|
foreach($res as &$value){
|
|
|
$res = $star->getChildArticlePage($position,$field);
|
|
|
foreach($res['data']['data'] as &$value){
|
|
|
$more = json_decode($value['more'],true);
|
|
|
$value['video'] = $more['video'];
|
|
|
$value['video'] = isset($more['video']) && !empty($more['video'])?$more['video']:'';;
|
|
|
$value['city_name'] = $this->getCityCategory($value['city_id']);
|
|
|
}
|
|
|
$this->assign('res',$res);
|
|
|
$this->assign('res',$res['data']);
|
|
|
$this->assign('page',$res['page']);
|
|
|
|
|
|
//城市分类
|
|
|
$enjoyModel = new EnjoyController();
|
|
|
$city_name = $enjoyModel->getCityName();
|
|
|
$this->assign('city_name',$city_name);
|
|
|
|
|
|
$this->assign('city_id',$city_id);
|
|
|
return $this->fetch();
|
|
|
}
|
|
|
|
...
|
...
|
@@ -178,9 +186,9 @@ class RegionController extends HomeBaseController |
|
|
$position['category_id'] = CityCategoryModel::xqgs;
|
|
|
$field = 'id,thumbnail,post_excerpt,more,create_time';
|
|
|
$res = $this->getChildArticlePage($position,$field);
|
|
|
foreach($res as &$value){
|
|
|
foreach($res['data']['data'] as &$value){
|
|
|
$more = json_decode($value['more'],true);
|
|
|
$value['audio'] = $more['audio'];
|
|
|
$value['audio'] = isset($more['audio']) && !empty($more['audio'])?$more['audio']:'';
|
|
|
}
|
|
|
$this->assign('res',$res['data']);
|
|
|
$this->assign('page',$res['page']);
|
...
|
...
|
|