mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改微信模式兼容
This commit is contained in:
parent
d9d4da48e1
commit
1cf5c34f52
@ -55,7 +55,7 @@ class Config extends BasicAdmin
|
|||||||
'appuri' => url("@wechat/api.push", '', true, true),
|
'appuri' => url("@wechat/api.push", '', true, true),
|
||||||
'appid' => $this->request->get('appid', sysconf('wechat_thr_appid')),
|
'appid' => $this->request->get('appid', sysconf('wechat_thr_appid')),
|
||||||
'appkey' => $this->request->get('appkey', sysconf('wechat_thr_appkey')),
|
'appkey' => $this->request->get('appkey', sysconf('wechat_thr_appkey')),
|
||||||
'authurl' => config('wechat.service_url') . "/wechat/api.push/auth/{$code}.html",
|
'authurl' => config('wechat.service_url') . "/wechat/api.push/auth/redirect/{$code}.html",
|
||||||
'wechat' => $info,
|
'wechat' => $info,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,6 @@ class WechatService
|
|||||||
list($appid, $appkey) = [sysconf('wechat_thr_appid'), sysconf('wechat_thr_appkey')];
|
list($appid, $appkey) = [sysconf('wechat_thr_appid'), sysconf('wechat_thr_appkey')];
|
||||||
$token = strtolower("{$name}-{$appid}-{$appkey}");
|
$token = strtolower("{$name}-{$appid}-{$appkey}");
|
||||||
$location = config('wechat.service_url') . "/wechat/api.client/soap/param/{$token}.html";
|
$location = config('wechat.service_url') . "/wechat/api.client/soap/param/{$token}.html";
|
||||||
p($location);
|
|
||||||
$params = ['uri' => strtolower($name), 'location' => $location, 'trace' => true];
|
$params = ['uri' => strtolower($name), 'location' => $location, 'trace' => true];
|
||||||
return new SoapService(null, $params);
|
return new SoapService(null, $params);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user