This commit is contained in:
mkm 2023-09-27 16:19:17 +08:00
parent 15a098f733
commit cd6ed62f4d

View File

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