From ce086b01573cb4475420428e87dba0e3fd796c41 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Mon, 25 Sep 2023 15:28:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E7=94=A8=E6=88=B7=E4=BF=9D?= =?UTF-8?q?=E8=AF=81=E9=87=91=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/Auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/api/Auth.php b/app/controller/api/Auth.php index aa092d1f..b25e2989 100644 --- a/app/controller/api/Auth.php +++ b/app/controller/api/Auth.php @@ -312,7 +312,7 @@ class Auth extends BaseController $user = $this->request->userInfo(); [$page, $limit] = $this->getPage(); $count = Db::name('margin_order')->where('uid', $user['uid'])->count(); - $list = Db::name('margin_order')->where('uid', $user['uid'])->page($page, $limit)->select()->toArray(); + $list = Db::name('margin_order')->where('uid', $user['uid'])->page($page, $limit)->order('order_id', 'desc')->select()->toArray(); return app('json')->success(compact('count', 'list')); }