This commit is contained in:
lingling 2025-02-22 20:26:07 +08:00
commit 8b3862ec32
1 changed files with 9 additions and 1 deletions

View File

@ -97,7 +97,15 @@ class WithdrawController
//同意
$userbank = Userbank::where('user_id', $user_id)->first();
if ($userbank) {
PaymentNew::pushMoney($amount, $userbank->bank_username, $userbank->account, $userbank->bank_name, $id);
$res = PaymentNew::pushMoney($amount, $userbank->bank_username, $userbank->account, $userbank->bank_name, $id);
if(!$res->Success){
$Withdraw = Withdraw::where('id', $id)->first();
$Withdraw->status = 5;
$Withdraw->status_text = '支付失败:用户银行信息存在问题';
$Withdraw->save();
UserRewardDao::base($user_id, 1, $money, '提现失败返还');
return ApiResponse::error(null, '用户银行信息存在问题');
}
$Withdraw = Withdraw::where('id', $id)->first();
$Withdraw->status = 2;
$Withdraw->status_text = '已到账';