构造的链接:https://open.weixin.qq.com/connect/oauth2/authorize?appid=wwa29a54f1e33c01df&redirect_uri=https%3A%2F%2Fdevcc.myegoo.com.cn%2Fwx_oauth%2Fzhiniu%2Findex.html&response_type=code&scope=snsapi_privateinfo&agentid=1000060#wechat_redirectpc截图:[图片],一直这个状态网页授权代码如下:[图片]
企微小程序pc网页授权一直在加载?企微小程序通过网页授权的方式获取用户信息,在手机端正常。但在pc就一直循环加载中,卡在网页授权页面啦。目前没解决的头绪,请问这是什么问题呢 [图片] 就一直卡在这个界面啦。在手机端正常,网页授权代码如下: /** * 网页授权登录代码,参数维护在/tool/publicParameters.js * @date 2022-10-11 14:21:55 */ window.onload = function() { if(String.getParam("agentInfo")) { const agentInfo = JSON.parse(decodeURIComponent(String.getParam("agentInfo"))) const redirect_uri = location.href.split('#')[0]; window.location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${agentInfo.corpid}&redirect_uri=${redirect_uri}&response_type=code&scope=${agentInfo.scope}&agentid=${agentInfo.agentId}#wechat_redirect`; } else if (String.getParam("code")) { const code = String.getParam("code"); wx.miniProgram.redirectTo({ url: "/pages/login/loginAfterLoading?code=" + code }); } }
2022-10-23