WeChat open platform web login authorization (open), the whole dead!!
According to API, each parameter permissions of what should be ok,
Post code:
& lt; script>
Var appid="wxdf6b300ee49243f2";
Var redirect_uri=encodeURIComponent (window. The location. Href);
Var scope="snsapi_login";
Var url="https://open.weixin.qq.com/connect/qrconnect? Appid="+ +" appid & amp; Redirect_uri="+ +" redirect_uri & amp; The payload=code& The scope="+ scope +" & amp; State=1 # wechat_redirect ";
Window. The location. Href=https://bbs.csdn.net/topics/url;
</script>
Below is a link:
https://open.weixin.qq.com/connect/qrconnect? Appid=wxdf6b300ee49243f2 & amp; Redirect_uri=http%3A%2F%2Fwww.choushenbian.com % 2 findex2. Html& The payload=code& The scope=snsapi_login & amp; State=1 # wechat_redirect
Error:
O answer greatly

CodePudding user response:
The scope types like no snsapi_login?
Only
snsapi_base and
snsapi_userinfo CodePudding user response: