Skip to content

Commit 153a3fa

Browse files
committed
fix: update WeCom QR code iframe URL to use state instead of accessToken
1 parent a568cfe commit 153a3fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/views/chat/user-login/scanCompinents/wecomQrCode.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const init = async () => {
4040
const redirectUri = encodeURIComponent(data.redirectUri)
4141
console.log('redirectUri', data.redirectUri)
4242
// 手动构建生成二维码的url
43-
iframeUrl.value = `https://login.work.weixin.qq.com/wwlogin/sso/login?login_type=CorpApp&appid=${data.corpId}&agentid=${data.agentId}&redirect_uri=${redirectUri}&accessToken=${accessToken}&state=fit2cloud-wecom-qr&lang=${lang}&lang=${lang}&panel_size=small`
43+
iframeUrl.value = `https://login.work.weixin.qq.com/wwlogin/sso/login?login_type=CorpApp&appid=${data.corpId}&agentid=${data.agentId}&redirect_uri=${redirectUri}&state=${accessToken}&lang=${lang}&lang=${lang}&panel_size=small`
4444
}
4545
4646
init()

0 commit comments

Comments
 (0)