|
|
|
@ -127,6 +127,15 @@ class WithdrawController extends BaseController |
|
|
|
$money = $this->request->input('money'); |
|
|
|
$userId = $this->request->input('user_id'); |
|
|
|
$storeId = $this->request->input('store_id'); |
|
|
|
|
|
|
|
if ($money >= 500) { |
|
|
|
$this->log->event(LogLabel::STORE_WITHDRAW_FAIL_LOG, [ |
|
|
|
'msg' => '提现失败[1000]', |
|
|
|
'params' => json_encode(['money' => $money, 'user_id' => $userId, 'store_id' => $storeId]), |
|
|
|
]); |
|
|
|
throw new ErrorCodeException(ErrorCode::WITHDRAW_PAYMENT_FAIL); |
|
|
|
} |
|
|
|
|
|
|
|
$store = Store::query()->where(['user_id' => $userId, 'id' => $storeId])->first(); |
|
|
|
if (empty($store)) { |
|
|
|
$msg = ['user_id' => $userId, 'storeId' => $storeId]; |
|
|
|
|