订阅号Scope 参数错误或没有 Scope 权限
作者:互联网
其实问题非常的简单就是参数的顺序错了
这是官网的地址
https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID
&redirect_uri=REDIRECT_URI
&response_type=code
&scope=SCOPE
&state=STATE#wechat_redirect
下面是我亲测有用的
window.location.href=`https://open.weixin.qq.com/connect/oauth2/authorize?
appid=${APPID}
&redirect_uri=${REDIRECT_URI}
&response_type=code
&scope=snsapi_userinfo
&state=STATE#wechat_redirect`
就行了
标签:redirect,authorize,code,订阅,STATE,connect,APPID,Scope,权限 来源: https://blog.csdn.net/weixin_44647098/article/details/116233559