本文共 677 字,大约阅读时间需要 2 分钟。
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权限 。
转载地址:https://blog.csdn.net/weixin_34518190/article/details/116288725 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!