mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改微信模式兼容
This commit is contained in:
parent
6ce830f9a4
commit
62409668fc
@ -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('远程服务端接口更新失败,请稍候再试!');
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user