fix: 修改提现逻辑中的注释和错误提示信息

This commit is contained in:
lingling 2025-03-02 18:02:17 +08:00
parent 3d7865aef6
commit 66f74cb830
1 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ class WithdrawController
'username' => $user->username,
'status_text' => '申请中',
]);
//大于1000等待管理员审核
//大于1000积分等待管理员审核
if ($money_no >= 100000) {
//用户积分减少$money
UserRewardDao::base($user_id, 1, - ($money_no + self::$handlingFee), '提现');
@ -178,13 +178,13 @@ class WithdrawController
}
$withdraw->update([
'status' => 5, //
'status_text' => '支付错误:'.$errorMsg
'status_text' => '支付错误:'.$res->ErrorMessage
]);
UserRewardDao::base($user_id, 1, $money_no + self::$handlingFee, '提现失败返还');
// if ($res->ErrorMessage == "PayeeAccountNameFormatError") {
// return ApiResponseApp::error(null, '收款人帐号格式错误');
// }
return ApiResponseApp::error(null, $errorMsg);
return ApiResponseApp::error(null, $res->ErrorMessage);
}
}