From 36b03a0c097ac0387ea9efc2990ae65b1d294b32 Mon Sep 17 00:00:00 2001 From: weigang Date: Mon, 21 Sep 2020 15:11:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=8E=B0=E8=AE=BE=E9=98=88=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Controller/v3/WithdrawController.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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];