mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改ThinkAdmin与ThinkServcie对接参数
This commit is contained in:
parent
df131ca173
commit
f42bb62bae
@ -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/redirect/{$code}.html",
|
'authurl' => config('wechat.service_url') . "/wechat/api.push/auth/{$code}.html",
|
||||||
'wechat' => $info,
|
'wechat' => $info,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
@ -78,7 +78,7 @@ class WechatService
|
|||||||
default:
|
default:
|
||||||
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/{$token}.html";
|
||||||
$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