来自AI助手的总结
调整授权链接中scope参数的位置可解决未关注者点击授权时出现的权限错误问题。
scope为snsapi_userinfo 未关注者点击授权提示 scope参数错误或没有scope权限

解决方法:
订阅号没有相关的权限
账号没有认证,没有相关的权限
那么这里遇到问题两种都不是。开发账号是 服务号,而且也是认证号。
解决方法:
错误配置:
https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxf0e81c3bee622d60&redirect_uri=http%3A%2F%2Fnba.bluewebgame.com%2Foauth_response.php&scope=snsapi_userinfo&response_type=code&state=STATE#wechat_redirect
正确的配置:
https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxf0e81c3bee622d60&redirect_uri=http%3A%2F%2Fnba.bluewebgame.com%2Foauth_response.php&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect
区别:scope的位置不一样
scope为 snsapi_base的时候没有影响。
scope为snsapi_userinfo就会提示 scope参数错误或没有scope权限 。
© 版权声明
THE END









![根据 sitemap 的规则[0],当前页面 [pages/index/index] 将被索引-蚂蚁资源网](http://www.bkmayi.cn/wp-content/uploads/2024/12/e6a0b9e68dae-sitemap-e79a84e8a784e588990efbc8ce5bd93e5898de9a1b5e99da2-pages-index-index-e5b086e8a2abe7b4a2e5bc95_6773f72d52161.png)

暂无评论内容