正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
@@ -154,7 +154,7 @@ class Order extends Api | @@ -154,7 +154,7 @@ class Order extends Api | ||
154 | }) | 154 | }) |
155 | */ | 155 | */ |
156 | public function marketList(){ | 156 | public function marketList(){ |
157 | - $list = UserMarket::where('user_id',$this->auth->id)->field('market_id id,market_name')->select(); | 157 | + $list = UserMarket::where('user_id',$this->auth->id)->field('market_id id,market_name')->order('createtime desc')->select(); |
158 | $this->success('成功',$list); | 158 | $this->success('成功',$list); |
159 | } | 159 | } |
160 | 160 |
@@ -332,7 +332,7 @@ class User extends Api | @@ -332,7 +332,7 @@ class User extends Api | ||
332 | */ | 332 | */ |
333 | public function marketList() | 333 | public function marketList() |
334 | { | 334 | { |
335 | - $list = UserMarket::where('user_id',$this->auth->id)->field('id,market_id,market_name')->select(); | 335 | + $list = UserMarket::where('user_id',$this->auth->id)->field('id,market_id,market_name')->order('createtime desc')->select(); |
336 | $this->success('成功',$list); | 336 | $this->success('成功',$list); |
337 | } | 337 | } |
338 | 338 |
-
请 注册 或 登录 后发表评论