Compare commits
No commits in common. "8262537bf44b0cee59ac4108a2a6177238284a5b" and "a45fc664606f4076d7ad80f5423ee5ad72b3b96e" have entirely different histories.
8262537bf4
...
a45fc66460
|
@ -102,7 +102,6 @@ class WithdrawController
|
|||
$Withdraw = Withdraw::where('id', $id)->first();
|
||||
$Withdraw->status = 5;
|
||||
$Withdraw->status_text = '支付失败:用户银行信息存在问题';
|
||||
$Withdraw->order_number = $res->TrackingNumber ?? null;
|
||||
$Withdraw->save();
|
||||
UserRewardDao::base($user_id, 1, $money, '提现失败返还');
|
||||
return ApiResponse::error(null, '用户银行信息存在问题');
|
||||
|
@ -110,14 +109,12 @@ class WithdrawController
|
|||
$Withdraw = Withdraw::where('id', $id)->first();
|
||||
$Withdraw->status = 2;
|
||||
$Withdraw->status_text = '已到账';
|
||||
$Withdraw->order_number = $res->TrackingNumber ?? null;
|
||||
$Withdraw->save();
|
||||
return ApiResponse::success(200, null, '操作成功');
|
||||
} else {
|
||||
$Withdraw = Withdraw::where('id', $id)->first();
|
||||
$Withdraw->status = 5;
|
||||
$Withdraw->status_text = '支付失败:用户银行信息存在问题';
|
||||
$Withdraw->order_number = $res->TrackingNumber ?? null;
|
||||
$Withdraw->save();
|
||||
UserRewardDao::base($user_id, 1, $money, '提现失败返还');
|
||||
return ApiResponse::error(200, null, '用户银行信息存在问题');
|
||||
|
|
|
@ -110,7 +110,6 @@ class WithdrawController
|
|||
return ApiResponseApp::error(null, '每天只能提现三次');
|
||||
}
|
||||
$user = User::find($user_id);
|
||||
|
||||
//提现金额
|
||||
$rate = ExchangeRate::where('type', 'BDT')->get();
|
||||
$money = $money_no / 100 * $rate[0]['points'];
|
||||
|
|
Loading…
Reference in New Issue