更新
This commit is contained in:
parent
15a098f733
commit
cd6ed62f4d
@ -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'));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user