feat: 新增

This commit is contained in:
陈狼 2025-02-23 22:21:24 +08:00
parent 4fe78de590
commit 1177350ac8
1 changed files with 3 additions and 0 deletions

View File

@ -200,6 +200,9 @@ class WithdrawController
$withdraw = Withdraw::where('order_number', $orderId)->first(); $withdraw = Withdraw::where('order_number', $orderId)->first();
//$failedMessage为null就是成功 //$failedMessage为null就是成功
if ($failedMessage != null) { if ($failedMessage != null) {
if($withdraw->status == 5){
return;
}
$rate = ExchangeRate::where('type', 'BDT')->get(); $rate = ExchangeRate::where('type', 'BDT')->get();
$money = $amount * 100 / $rate[0]['points'] + 300; $money = $amount * 100 / $rate[0]['points'] + 300;
UserRewardDao::base($withdraw->user_id, 1, $money, '提现失败返还'); UserRewardDao::base($withdraw->user_id, 1, $money, '提现失败返还');