diff --git a/application/wechat/controller/Config.php b/application/wechat/controller/Config.php index 48de3aae8..d8901acaa 100644 --- a/application/wechat/controller/Config.php +++ b/application/wechat/controller/Config.php @@ -73,7 +73,7 @@ class Config extends BasicAdmin // 第三方平台时设置远程平台通知接口 if ($this->request->post('wechat_type') === 'thr') { $apiurl = url('@wechat/api.push', '', true, true); - if (!WechatService::instance('config')->setApiNotifyUri($apiurl)) { + if (!WechatService::config()->setApiNotifyUri($apiurl)) { $this->error('远程服务端接口更新失败,请稍候再试!'); } } diff --git a/extend/service/WechatService.php b/extend/service/WechatService.php index a24560acf..be2087105 100644 --- a/extend/service/WechatService.php +++ b/extend/service/WechatService.php @@ -80,6 +80,7 @@ class WechatService list($appid, $appkey) = [sysconf('wechat_thr_appid'), sysconf('wechat_thr_appkey')]; $token = strtolower("{$name}-{$appid}-{$appkey}"); $location = config('wechat.service_url') . "/wechat/api.client/soap/param/{$token}.html"; + p($location); $params = ['uri' => strtolower($name), 'location' => $location, 'trace' => true]; return new SoapService(null, $params); }