Ken 5 дней назад
Родитель
Сommit
1a8e867464
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app/Services/PaymentOrderService.php

+ 2 - 2
app/Services/PaymentOrderService.php

@@ -329,7 +329,7 @@ class PaymentOrderService extends BaseService
                 ->where('type', 2)
                 ->where('type', 2)
                 ->where('status', self::STATUS_STAY)
                 ->where('status', self::STATUS_STAY)
                 ->first();
                 ->first();
-            if (!$order) throw new Exception("订单不存在", HttpStatus::CUSTOM_ERROR);
+            if (!$order) throw new Exception("订单不存在_{$orderId}", HttpStatus::CUSTOM_ERROR);
             // 更新提现记录状态为失败
             // 更新提现记录状态为失败
             $order->status = self::STATUS_FAIL;
             $order->status = self::STATUS_FAIL;
             $order->remark = $remark;
             $order->remark = $remark;
@@ -364,7 +364,7 @@ class PaymentOrderService extends BaseService
                 ->where('type', 2)
                 ->where('type', 2)
                 ->where('status', self::STATUS_STAY)
                 ->where('status', self::STATUS_STAY)
                 ->first();
                 ->first();
-            if (!$order) throw new Exception("订单不存在", HttpStatus::CUSTOM_ERROR);
+            if (!$order) throw new Exception("订单不存在_{$orderId}", HttpStatus::CUSTOM_ERROR);
             $amount = $order->amount;
             $amount = $order->amount;
             $amount = number_format($amount, 2, '.', '');
             $amount = number_format($amount, 2, '.', '');
             $ret = QianBaoService::payout($amount, $order->order_no, $order->bank_name, $order->account, $order->card_no);
             $ret = QianBaoService::payout($amount, $order->order_no, $order->bank_name, $order->account, $order->card_no);