|
|
|
@ -68,7 +68,8 @@ class WithdrawController extends BaseController |
|
|
|
$storeId = $this->request->input('store_id'); |
|
|
|
$store = Store::query()->where(['user_id' => $userId, 'id' => $storeId])->first(); |
|
|
|
if (empty($store)) { |
|
|
|
throw new ErrorCodeException(ErrorCode::STORE_NOT_AVAILABLE); |
|
|
|
$msg = ['user_id' => $userId, 'storeId' => $storeId]; |
|
|
|
throw new ErrorCodeException(ErrorCode::STORE_NOT_AVAILABLE,json_encode($msg)); |
|
|
|
} |
|
|
|
|
|
|
|
$data['balance'] = UserBalance::query() |
|
|
|
@ -128,7 +129,8 @@ class WithdrawController extends BaseController |
|
|
|
$storeId = $this->request->input('store_id'); |
|
|
|
$store = Store::query()->where(['user_id' => $userId, 'id' => $storeId])->first(); |
|
|
|
if (empty($store)) { |
|
|
|
throw new ErrorCodeException(ErrorCode::STORE_NOT_AVAILABLE, '[稍后重试]'); |
|
|
|
$msg = ['user_id' => $userId, 'storeId' => $storeId]; |
|
|
|
throw new ErrorCodeException(ErrorCode::STORE_NOT_AVAILABLE, '[稍后重试]' . json_encode($msg)); |
|
|
|
} |
|
|
|
|
|
|
|
// 校验余额
|
|
|
|
|