[更新]修改微信模式兼容

This commit is contained in:
Anyon 2018-03-19 14:20:36 +08:00
parent 6ce830f9a4
commit 62409668fc
2 changed files with 2 additions and 1 deletions

View File

@ -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('远程服务端接口更新失败,请稍候再试!');
}
}

View File

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