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

修改视频更多的城市分类

@@ -160,14 +160,23 @@ class RegionController extends HomeBaseController @@ -160,14 +160,23 @@ class RegionController extends HomeBaseController
160 $this->assign('page',$res['page']); 160 $this->assign('page',$res['page']);
161 161
162 //城市分类 162 //城市分类
163 - $enjoyModel = new EnjoyController();  
164 - $city_name = $enjoyModel->getCityName(); 163 + $city_name = $this->getVideoCityName();
165 $this->assign('city_name',$city_name); 164 $this->assign('city_name',$city_name);
166 165
167 $this->assign('city_id',$city_id); 166 $this->assign('city_id',$city_id);
168 return $this->fetch(); 167 return $this->fetch();
169 } 168 }
170 169
  170 + //获取城市名称
  171 + public function getVideoCityName(){
  172 + $res = Db::name('city_category')
  173 + ->where('pid','<>',0)
  174 + ->where('id','<>',CityCategoryModel::xqgh_cc)
  175 + ->where('delete_time',0)
  176 + ->field('id,name')->select()->toArray();
  177 + return $res;
  178 + }
  179 +
171 //明星访谈更多 180 //明星访谈更多
172 public function getMoreStar(){ 181 public function getMoreStar(){
173 $position['category_id'] = CityCategoryModel::mxft; 182 $position['category_id'] = CityCategoryModel::mxft;