作者 何书鹏
1 个管道 的构建 通过 耗费 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