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

增加城市首页宣传视频

... ... @@ -76,12 +76,20 @@ class IndexController extends HomeBaseController
// }
$this->assign('res_month',$month);
//星域秀场->星球影院
//星域秀场->首页宣传
// $res_xqyy = cache('res_xqyy');
// if(!$res_xqyy){
// $position = CityCategoryModel::xqyy;
// $field = 'id,more,index_thumbnail';
// $res_xqyy = $this->getVideoIndex($position,$field,1);
// foreach($res_xqyy as &$value){
// $video = json_decode($value['more'],true);
// $value['video'] = $video['video'];
// }
$position = CityCategoryModel::xqyy;
$city_id = CityCategoryModel::syxc;
$field = 'id,more,index_thumbnail';
$res_xqyy = $this->getVideoIndex($position,$field,1);
$res_xqyy = $this->getVideo($position,$city_id,$field,1,1);
foreach($res_xqyy as &$value){
$video = json_decode($value['more'],true);
$value['video'] = $video['video'];
... ...
... ... @@ -56,6 +56,7 @@ class CityCategoryModel extends Model
//城市
const xqgh_cc = 65;//星球故事
const djxq = 68;//独角星球
const syxc = 70;//首页宣传
//五大洲
const asia = 1;//亚洲
... ...