Ver Fonte

退款模型修改

moonsflyer há 5 meses atrás
pai
commit
6ccb1d9632
1 ficheiros alterados com 4 adições e 4 exclusões
  1. 4 4
      app/common/logic/RefundLogic.php

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

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