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

修改城市权重排列

@@ -115,7 +115,10 @@ class EnjoyController extends HomeBaseController @@ -115,7 +115,10 @@ class EnjoyController extends HomeBaseController
115 ->where('id','<>',CityCategoryModel::djxq) 115 ->where('id','<>',CityCategoryModel::djxq)
116 ->where('is_show',1) 116 ->where('is_show',1)
117 ->where('delete_time',0) 117 ->where('delete_time',0)
118 - ->field('id,name')->select()->toArray(); 118 + ->field('id,name')
  119 + ->order('weigh desc')
  120 + ->select()
  121 + ->toArray();
119 return $res; 122 return $res;
120 } 123 }
121 } 124 }
@@ -169,7 +169,10 @@ class RegionController extends HomeBaseController @@ -169,7 +169,10 @@ class RegionController extends HomeBaseController
169 ->where('id','<>',CityCategoryModel::xqgh_cc) 169 ->where('id','<>',CityCategoryModel::xqgh_cc)
170 ->where('is_show',1) 170 ->where('is_show',1)
171 ->where('delete_time',0) 171 ->where('delete_time',0)
172 - ->field('id,name')->select()->toArray(); 172 + ->field('id,name')
  173 + ->order('weigh desc')
  174 + ->select()
  175 + ->toArray();
173 return $res; 176 return $res;
174 } 177 }
175 178