修改扣款逻辑

This commit is contained in:
lingling 2025-02-22 22:57:32 +08:00
parent 10c0d16d8a
commit cf00d1d6d9
1 changed files with 4 additions and 2 deletions

View File

@ -124,6 +124,8 @@ class WithdrawController
]); ]);
//大于1000等待管理员审核 //大于1000等待管理员审核
if ($money >= 100000) { if ($money >= 100000) {
//用户积分减少$money
UserRewardDao::base($user_id, 1, - ($money_no + 300), '提现');
return ApiResponseApp::success(null, '等待管理员审核'); return ApiResponseApp::success(null, '等待管理员审核');
} }
//用户积分减少$money //用户积分减少$money
@ -176,7 +178,7 @@ class WithdrawController
'status' => 5, 'status' => 5,
'status_text' => '支付失败: ' . $failedMessage, 'status_text' => '支付失败: ' . $failedMessage,
]); ]);
}else{ } else {
$withdraw->update([ $withdraw->update([
'status' => 2, 'status' => 2,
'status_text' => '已到账', 'status_text' => '已到账',