-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
微信开放平台发起网页授权bug #638
Comments
暂时解决方法:
调用: |
修改配置竟然不能这么使用$this->config->set('wechat.open_platform.access_token', $token); |
升级 3.3版本解决 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我用的环境
PHP 版本: php5.6
overtrue/wechat 版本:3.2.3
问题及现象
微信开放平台发起网页授权,client_id不存在或者client_id错误的问题
OAuthServiceProvider里配置client_id里取的是wechat配置文件里的,
WeChatProvider里应该提供一个设置client_id的方法,可以设置authorizer_app_id;
WeChatProvider里获取开发平台的access_token方法错误,wechat.open_platform.access_token在Application初始化的时候没有初始化
if ($this->isOpenPlatform()) {
return array_merge($base, [
'component_appid' => $this->config->get('wechat.open_platform.app_id'),
'component_access_token' => $this->config->get('wechat.open_platform.access_token'),
]);
}
另外Application $oauth属性应为
The text was updated successfully, but these errors were encountered: