diff --git a/app/Controller/v3/WithdrawController.php b/app/Controller/v3/WithdrawController.php index b0b7f8c..9750440 100644 --- a/app/Controller/v3/WithdrawController.php +++ b/app/Controller/v3/WithdrawController.php @@ -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];