|
@@ -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);
|
|
|
}
|
|
|
}
|