微信网页开发授权登录 该链接无法访问

lixia2229 lixia2229 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
微信开放平台网页授权登录(open),整死人哦!!

根据api来的,各项参数权限设置什么的应该都ok的。


代码贴出来:
<script>
var appid = "wxdf6b300ee49243f2";
var redirect_uri = encodeURIComponent(window.location.href);
var scope = "snsapi_login";

var url = "https://open.weixin.qq.com/connect/qrconnect?appid=" + appid + "&redirect_uri=" + redirect_uri + "&response_type=code&scope=" + scope + "&state=1#wechat_redirect";
window.location.href = url;
</script>


下面是链接:
https://open.weixin.qq.com/connect/qrconnect?appid=wxdf6b300ee49243f2&redirect_uri=http%3A%2F%2Fwww.choushenbian.com%2Findex2.html&response_type=code&scope=snsapi_login&state=1#wechat_redirect

错误:



求大大解答
...全文

相关推荐

评论 24
收藏 已收藏
分享
返回顶部
lixia2229
微信开发 3,161 成员 3,828 内容