zhangguidong il y a 2 ans
Parent
commit
2d4dfd2c7c

+ 1 - 1
app/data/controller/api/Order.php

@@ -379,7 +379,7 @@ class Order extends Auth
         ];
 
         $result = Pay::alipay($config)->refund($order);
-        print_r($result);die;
+        print_r(json_decode($result,true));die;
     }
 
 

+ 1 - 1
vendor/yansongda/pay/src/Gateways/Alipay/Support.php

@@ -407,7 +407,7 @@ class Support
         if (!isset($result['sign']) || '10000' != $result[$method]['code']) {
             throw new GatewayException('Get Alipay API Error:'.$result[$method]['msg'].(isset($result[$method]['sub_code']) ? (' - '.$result[$method]['sub_code']) : ''), $result);
         }
-        return $result;
+        return new Collection($result[$method]);
 
         if (self::verifySign($result[$method], true, $result['sign'])) {