Compare commits

..

2 Commits

Author SHA1 Message Date
陈狼 8262537bf4 Merge branch 'master' of https://git.shagain.club/shulang/webman 2025-02-22 23:32:42 +08:00
陈狼 d88062b4f6 feat: 新增 2025-02-22 23:32:37 +08:00
2 changed files with 4 additions and 0 deletions

View File

@ -102,6 +102,7 @@ class WithdrawController
$Withdraw = Withdraw::where('id', $id)->first(); $Withdraw = Withdraw::where('id', $id)->first();
$Withdraw->status = 5; $Withdraw->status = 5;
$Withdraw->status_text = '支付失败:用户银行信息存在问题'; $Withdraw->status_text = '支付失败:用户银行信息存在问题';
$Withdraw->order_number = $res->TrackingNumber ?? null;
$Withdraw->save(); $Withdraw->save();
UserRewardDao::base($user_id, 1, $money, '提现失败返还'); UserRewardDao::base($user_id, 1, $money, '提现失败返还');
return ApiResponse::error(null, '用户银行信息存在问题'); return ApiResponse::error(null, '用户银行信息存在问题');
@ -109,12 +110,14 @@ class WithdrawController
$Withdraw = Withdraw::where('id', $id)->first(); $Withdraw = Withdraw::where('id', $id)->first();
$Withdraw->status = 2; $Withdraw->status = 2;
$Withdraw->status_text = '已到账'; $Withdraw->status_text = '已到账';
$Withdraw->order_number = $res->TrackingNumber ?? null;
$Withdraw->save(); $Withdraw->save();
return ApiResponse::success(200, null, '操作成功'); return ApiResponse::success(200, null, '操作成功');
} else { } else {
$Withdraw = Withdraw::where('id', $id)->first(); $Withdraw = Withdraw::where('id', $id)->first();
$Withdraw->status = 5; $Withdraw->status = 5;
$Withdraw->status_text = '支付失败:用户银行信息存在问题'; $Withdraw->status_text = '支付失败:用户银行信息存在问题';
$Withdraw->order_number = $res->TrackingNumber ?? null;
$Withdraw->save(); $Withdraw->save();
UserRewardDao::base($user_id, 1, $money, '提现失败返还'); UserRewardDao::base($user_id, 1, $money, '提现失败返还');
return ApiResponse::error(200, null, '用户银行信息存在问题'); return ApiResponse::error(200, null, '用户银行信息存在问题');

View File

@ -110,6 +110,7 @@ class WithdrawController
return ApiResponseApp::error(null, '每天只能提现三次'); return ApiResponseApp::error(null, '每天只能提现三次');
} }
$user = User::find($user_id); $user = User::find($user_id);
//提现金额 //提现金额
$rate = ExchangeRate::where('type', 'BDT')->get(); $rate = ExchangeRate::where('type', 'BDT')->get();
$money = $money_no / 100 * $rate[0]['points']; $money = $money_no / 100 * $rate[0]['points'];