moonsflyer 5 месяцев назад
Родитель
Сommit
6ccb1d9632
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      app/common/logic/RefundLogic.php

+ 4 - 4
app/common/logic/RefundLogic.php

@@ -18,7 +18,7 @@
 namespace app\common\logic;
 
 
-
+use app\common\service\pay\MixedPayService;
 use app\common\enum\AfterSaleEnum;
 use app\common\enum\AfterSaleLogEnum;
 use app\common\enum\DeliveryEnum;
@@ -231,11 +231,11 @@ class RefundLogic extends BaseLogic
     public static function mixedPayRefund($order, $refundAmount, $afterSaleId)
     {
         try {
-            $mixedPayService = new MixedPayService($order['order_terminal'], $order['user_id']);
-            $result = $mixedPayService->refund($order, $refundAmount, $afterSaleId);
+            $mixedPayServiceModel = new MixedPayService($order['order_terminal'], $order['user_id']);
+            $result = $mixedPayServiceModel->refund($order, $refundAmount, $afterSaleId);
             
             if ($result === false) {
-                throw new \Exception('混合支付退款失败:' . $mixedPayService->getError());
+                throw new \Exception('混合支付退款失败:' . $mixedPayServiceModel->getError());
             }
             
             return true;