We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
微信授权scope=snsapi_base时 是无法获取用户信息的,只能拿到openid。 问题:但走微信公众号静默授权登录时 ,AuthWeChatMpRequest 拿到openid 后,去调用了获取用户信息接口,此时微信会返回 api unauthorized。 建议:AuthWeChatMpRequest #getUserInfo 方法 根据 scope来判断是否调用 https://api.weixin.qq.com/sns/userinfo 此接口, 也就是 当 scope=snsapi_userinfo 才去执行doGetUserInfo 方法 参考:https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html
The text was updated successfully, but these errors were encountered:
已修复,1.6.6 版本待发布
Sorry, something went wrong.
💩 修复微信公众平台 scope 为 snsapi_base 登录报错的问题 [181](#181)
14dd2b6
No branches or pull requests
微信授权scope=snsapi_base时 是无法获取用户信息的,只能拿到openid。
问题:但走微信公众号静默授权登录时 ,AuthWeChatMpRequest 拿到openid 后,去调用了获取用户信息接口,此时微信会返回 api unauthorized。
建议:AuthWeChatMpRequest #getUserInfo 方法 根据 scope来判断是否调用 https://api.weixin.qq.com/sns/userinfo 此接口,
也就是 当 scope=snsapi_userinfo 才去执行doGetUserInfo 方法
参考:https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html
The text was updated successfully, but these errors were encountered: