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')); }