From 62409668fcceddc95cac84cbd15f168e8e0f9079 Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 19 Mar 2018 14:20:36 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=A8=A1=E5=BC=8F=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/wechat/controller/Config.php | 2 +- extend/service/WechatService.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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); }