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

修改视频更多的城市分类

... ... @@ -160,14 +160,23 @@ class RegionController extends HomeBaseController
$this->assign('page',$res['page']);
//城市分类
$enjoyModel = new EnjoyController();
$city_name = $enjoyModel->getCityName();
$city_name = $this->getVideoCityName();
$this->assign('city_name',$city_name);
$this->assign('city_id',$city_id);
return $this->fetch();
}
//获取城市名称
public function getVideoCityName(){
$res = Db::name('city_category')
->where('pid','<>',0)
->where('id','<>',CityCategoryModel::xqgh_cc)
->where('delete_time',0)
->field('id,name')->select()->toArray();
return $res;
}
//明星访谈更多
public function getMoreStar(){
$position['category_id'] = CityCategoryModel::mxft;
... ...