|
@@ -186,11 +186,13 @@ class WxOrderLogistics extends BaseService
|
|
|
return json_decode($ret);
|
|
|
}
|
|
|
|
|
|
- public static function isTradeManaged(){
|
|
|
+ public static function isTradeManaged($storeId){
|
|
|
$weixinToken = MpWxService::weixinTokenCache();
|
|
|
$accessToken = $weixinToken['access_token'];
|
|
|
$url = 'https://api.weixin.qq.com/wxa/sec/order/is_trade_managed?access_token='.$accessToken;
|
|
|
- $params = ['appid'=>'wx1f365a1958760912'];
|
|
|
+ $wxConfig = WxappModel::getWxappCache($storeId);
|
|
|
+
|
|
|
+ $params = ['appid'=>$wxConfig['app_id']];
|
|
|
$ret = curl_post($url, json_encode($params));
|
|
|
return json_decode($ret);
|
|
|
}
|