Compare commits

..

No commits in common. "ee4bc4da30b7b49455aefffaebdbfbe11fcf83e1" and "6ac12e48b8ba53f4d6fef23d790f4909188c6574" have entirely different histories.

1 changed files with 0 additions and 5 deletions

View File

@ -164,14 +164,9 @@ class WithdrawController
Log::info('Payment Callback Received:', $callbackData);
$orderId = $callbackData['TrackingNumber'] ?? null;
$failedMessage = $callbackData['FailedMessage'] ?? null;
$amount = $callbackData['Amount'] ?? null;
$withdraw = Withdraw::where('order_number', $orderId)->first();
//$failedMessage为null就是成功
if ($failedMessage != null) {
$rate = ExchangeRate::where('type', 'BDT')->get();
$money = $amount * 100 / $rate[0]['points'] + 300;
UserRewardDao::base($withdraw->user_id, 1, $money, '提现失败返还');
$withdraw->update([
'status' => 5,
'status_text' => '支付失败: ' . $failedMessage,