Commit 245931f0 by lijiabin

【需求 22261】 fix: 优化code过期或者重用的bug

parent cbfa010e
......@@ -28,6 +28,12 @@ export function handleBackendError<T>(backendServiceResult: BackendServiceResult
msg: backendServiceResult.message,
}
showErrorMsg(error)
// 处理code过期的bug 继续换取新的 code
if(backendServiceResult.message.includes('企业微信ID为空')){
const cleanUrl = window.location.origin + window.location.pathname
location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww42a2d34b42b8d721&redirect_uri=${cleanUrl}&response_type=code&scope=snsapi_base#wechat_redirect`
}
return Promise.reject(backendServiceResult)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment