调用https://open.weixin.qq.com/connect/oauth2/authorize,后返回显示,
该地址含有无法正确解析的链接格式,
由于项目中不存在链接中带有code参数,
猜测应该是微信跳转过来的,但是失去的uri导致
代码片段
baseUrl: 'https://hlb.airiskeys.com/',
const murl = encodeURIComponent(baseUrl + '/#/details')
window.location.href =
'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' +
APPID +
'&redirect_uri=' +
murl +
`&response_type=code&scope=snsapi_userinfo&state=${posterUid}#wechat_redirect&connect_redirect=1&sceneCode=${sceneCode}&materialSource=${materialSource}&materialId=${materialId}&posterUid=${posterUid}`
该情况为偶发,(新用户才会获取,所以需要新用户才能触发)