zhangdehua преди 1 година
родител
ревизия
387564dd84
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      app/store/service/wxApi/WxOrderLogistics.php

+ 4 - 4
app/store/service/wxApi/WxOrderLogistics.php

@@ -131,7 +131,7 @@ class WxOrderLogistics extends BaseService
         ];
 
         $ret = curl_post($url, json_encode($params));
-        $arr = json_decode($ret);
+        $arr = json_decode($ret, true);
 
         return $arr;
     }
@@ -152,7 +152,7 @@ class WxOrderLogistics extends BaseService
         $params['transaction_id'] = $transId;
 
         $ret = curl_post($url, json_encode($params));
-        $arr = json_decode($ret);
+        $arr = json_decode($ret, true);
 
         return $arr;
     }
@@ -188,7 +188,7 @@ class WxOrderLogistics extends BaseService
         //$params = [];
         Log::info($url);
         $ret = curl_post($url, '{}');
-        return json_decode($ret);
+        return json_decode($ret,true);
     }
 
     public static function isTradeManaged($storeId)
@@ -200,6 +200,6 @@ class WxOrderLogistics extends BaseService
 
         $params = ['appid' => $wxConfig['app_id']];
         $ret = curl_post($url, json_encode($params));
-        return json_decode($ret);
+        return json_decode($ret,true);
     }
 }