Compare commits
2 Commits
a45fc66460
...
8262537bf4
Author | SHA1 | Date |
---|---|---|
|
8262537bf4 | |
|
d88062b4f6 |
|
@ -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, '用户银行信息存在问题');
|
||||||
|
|
|
@ -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'];
|
||||||
|
|
Loading…
Reference in New Issue