修改用户合并
This commit is contained in:
parent
6f6d1d7eae
commit
25fc0e598a
@ -63,7 +63,7 @@ class UserTokenMiddleware extends BaseMiddleware
|
||||
if (!$user['status'])
|
||||
throw new AuthException('用户已被禁用');
|
||||
if ($user['status'] == -1)
|
||||
throw new AuthException('用户已被禁用');
|
||||
throw new AuthException('当前账号已合并,请重新登录');
|
||||
if ($user['cancel_time'])
|
||||
throw new AuthException('用户不存在');
|
||||
|
||||
|
@ -1722,13 +1722,13 @@ class Auth extends BaseController
|
||||
$orders = StoreOrder::with(['refundOrder' => function(Query $query) {
|
||||
$query->where('status', '<>', -1)->field('order_id,refund_price');
|
||||
}])->where('uid', $user['uid'])
|
||||
->whereIn('status', [0, 1, 2, 3, 9, 10])
|
||||
->whereIn('status', [2, 3])
|
||||
->field('order_id,uid,total_price')
|
||||
->select()->toArray();
|
||||
$otherOrders = StoreOrderOther::with(['refundOrder' => function(Query $query) {
|
||||
$query->where('status', '<>', -1)->field('order_id,refund_price');
|
||||
}])->where('uid', $user['uid'])
|
||||
->whereIn('status', [0, 1, 2, 3, 9, 10])
|
||||
->whereIn('status', [2, 3])
|
||||
->field('order_id,uid,total_price')
|
||||
->select()->toArray();
|
||||
$purchaseAmount = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user