正在显示
2 个修改的文件
包含
8 行增加
和
2 行删除
@@ -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 |
-
请 注册 或 登录 后发表评论