修改扣款逻辑
This commit is contained in:
parent
10c0d16d8a
commit
cf00d1d6d9
|
@ -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' => '已到账',
|
||||||
|
|
Loading…
Reference in New Issue