From a7c5bd3390baf3e288b5253d9626f128e01debde Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Sat, 9 Sep 2023 20:18:18 +0800 Subject: [PATCH] =?UTF-8?q?update:=E5=85=AC=E5=8F=B8=E6=8F=90=E7=8E=B0?= =?UTF-8?q?=E6=94=B9=E9=80=A0,app=E7=AB=AF=E6=96=B0=E5=A2=9E=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=BD=93=E5=89=8D=E5=8F=AF=E6=8F=90=E7=8E=B0=E9=87=91?= =?UTF-8?q?=E9=A2=9D=E6=8E=A5=E5=8F=A3=EF=BC=8C=E5=90=8E=E5=8F=B0=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=8F=90=E7=8E=B0=E5=AE=A1=E6=A0=B8=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=EF=BC=8C=E6=A0=B9=E6=8D=AE=E5=91=A8=E6=9C=9F=E5=86=85=E5=8F=AF?= =?UTF-8?q?=E6=8F=90=E7=8E=B0=E9=87=91=E9=A2=9D=E5=81=9A=E6=89=A3=E9=99=A4?= =?UTF-8?q?=E5=85=AC=E5=8F=B8=E9=87=91=E9=A2=9D=E5=92=8C=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E9=87=91=E9=A2=9D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/adminapi/controller/finance/WithdrawController.php | 3 --- app/common/logic/finance/WithdrawLogic.php | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/adminapi/controller/finance/WithdrawController.php b/app/adminapi/controller/finance/WithdrawController.php index b5bb59b8b..b69c8c872 100644 --- a/app/adminapi/controller/finance/WithdrawController.php +++ b/app/adminapi/controller/finance/WithdrawController.php @@ -46,9 +46,6 @@ class WithdrawController extends BaseAdminController { try { $params = $this->request->param(); - if (empty($params['transfer_voucher'])) { - return $this->fail('请上传转账凭证'); - } $re = WithdrawLogic::audit($params); if (!$re) { return $this->fail(WithdrawLogic::getError()); diff --git a/app/common/logic/finance/WithdrawLogic.php b/app/common/logic/finance/WithdrawLogic.php index a6018150f..8694bd508 100644 --- a/app/common/logic/finance/WithdrawLogic.php +++ b/app/common/logic/finance/WithdrawLogic.php @@ -47,6 +47,10 @@ class WithdrawLogic extends BaseLogic return true; } + if (empty($params['transfer_voucher'])) { + throw new Exception('请上传转账凭证'); + } + Db::startTrans(); $endCycle = $withDrawInfo['transfer_end_cycel']; // 提现周期截止时间戳