From cf00d1d6d97b2fbfd41898617c735447916ba6da Mon Sep 17 00:00:00 2001 From: lingling <1077478963@qq.com> Date: Sat, 22 Feb 2025 22:57:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=A3=E6=AC=BE=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/WithdrawController.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/controller/api/WithdrawController.php b/app/controller/api/WithdrawController.php index add4e49..9ab514d 100644 --- a/app/controller/api/WithdrawController.php +++ b/app/controller/api/WithdrawController.php @@ -124,6 +124,8 @@ class WithdrawController ]); //大于1000等待管理员审核 if ($money >= 100000) { + //用户积分减少$money + UserRewardDao::base($user_id, 1, - ($money_no + 300), '提现'); return ApiResponseApp::success(null, '等待管理员审核'); } //用户积分减少$money @@ -165,7 +167,7 @@ class WithdrawController $orderId = $callbackData['TrackingNumber'] ?? null; $failedMessage = $callbackData['FailedMessage'] ?? null; $amount = $callbackData['Amount'] ?? null; - + $withdraw = Withdraw::where('order_number', $orderId)->first(); //$failedMessage为null就是成功 if ($failedMessage != null) { @@ -176,7 +178,7 @@ class WithdrawController 'status' => 5, 'status_text' => '支付失败: ' . $failedMessage, ]); - }else{ + } else { $withdraw->update([ 'status' => 2, 'status_text' => '已到账',