From 9aea9eb2944af6441ddd274493aad1e88e003646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=8B=BC?= <2468023037@qq.com> Date: Sun, 16 Feb 2025 22:54:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8F=90=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/WithdrawController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controller/api/WithdrawController.php b/app/controller/api/WithdrawController.php index e79b015..1e5d304 100644 --- a/app/controller/api/WithdrawController.php +++ b/app/controller/api/WithdrawController.php @@ -85,9 +85,10 @@ class WithdrawController $user=User::find($user_id); //提现金额 $rate = ExchangeRate::where('type','BDT')->get(); - $money = $money_no/100*$rate[0]['points']+500; + $money = $money_no/100*$rate[0]['points']; + var_dump($money); //用户积分减少$money - UserRewardDao::base($user_id, 1, -$money_no, '提现'); + UserRewardDao::base($user_id, 1, -($money_no+500), '提现'); //大于1000等待管理员审核 if($money>=1000){ Withdraw::create([