修改用户合并

This commit is contained in:
luofei 2024-03-13 10:41:39 +08:00 committed by mkm
parent 6f6d1d7eae
commit 25fc0e598a
2 changed files with 3 additions and 3 deletions

View File

@ -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('用户不存在');

View File

@ -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;