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([