fix: 企业微信扫码信息配置错误

--bug=1050048 --user=王孝刚 【企业微信-扫码登录】配置信息错误 https://www.tapd.cn/57709429/s/1626175

(cherry picked from commit b87c214cb5)
This commit is contained in:
wxg0103 2024-12-06 11:30:50 +08:00 committed by shaohuzhang1
parent 24e9184c61
commit 6f0877acf1

View File

@ -120,6 +120,8 @@ const open = async (platform: Platform) => {
let defaultCallbackUrl = window.location.origin
switch (platform.key) {
case 'wecom':
currentPlatform.config.callback_url = `${defaultCallbackUrl}/api/wecom`
break
case 'dingtalk':
if (currentPlatform.config.agent_id && currentPlatform.key === 'dingtalk') {
currentPlatform.config.corp_id = currentPlatform.config.agent_id