From cd6ed62f4dce95441b7e7134d7a5263806b4ac5e Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Wed, 27 Sep 2023 16:19:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/Auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controller/api/Auth.php b/app/controller/api/Auth.php index 047e5394..50c7141f 100644 --- a/app/controller/api/Auth.php +++ b/app/controller/api/Auth.php @@ -311,8 +311,8 @@ 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)->order('order_id', 'desc')->select()->toArray(); + $count = Db::name('margin_order')->where('uid', $user['uid'])->where('paid',1)->count(); + $list = Db::name('margin_order')->where('uid', $user['uid'])->where('paid',1)->page($page, $limit)->order('order_id', 'desc')->select()->toArray(); return app('json')->success(compact('count', 'list')); }