苹果调用https://open.weixin.qq.com/connect/oauth2/autho ,小程序是用了两年了的,回调域名也设置好了,昨天都是正常,今天就错误了,奇怪的是安卓机就是正常,苹果和pc端都报这个错
授权域名配置
H5页面的代码
// 登入
function login() {
let user = {
username: document.getElementById("username").value,
password: document.getElementById("password").value,
gssx: gssx
};
if (user.username == "" || user.password == "") {
alert("账号密码不能为空!");
return;
}
user = JSON.stringify(user);
let REDIRECT_URI = encodeURIComponent("https://wl.msrenyi.com/h5/index.html");
location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx95xxxxxxxxx&redirect_uri=${REDIRECT_URI}&response_type=code&scope=snsapi_userinfo&state=${user}#wechat_redirect`;
}
啥都没有怎么看问题啊,巧妇难为无米之炊