File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
ui/src/views/authentication/component Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -120,10 +120,14 @@ const open = async (platform: Platform) => {
120120 let defaultCallbackUrl = window .location .origin
121121 switch (platform .key ) {
122122 case ' wecom' :
123+ if (currentPlatform .config .app_key ) {
124+ currentPlatform .config .agent_id = currentPlatform .config .app_key
125+ delete currentPlatform .config .app_key
126+ }
123127 currentPlatform .config .callback_url = ` ${defaultCallbackUrl }/api/wecom `
124128 break
125129 case ' dingtalk' :
126- if (currentPlatform .config .agent_id && currentPlatform . key === ' dingtalk ' ) {
130+ if (currentPlatform .config .agent_id ) {
127131 currentPlatform .config .corp_id = currentPlatform .config .agent_id
128132 delete currentPlatform .config .agent_id
129133 }
You can’t perform that action at this time.
0 commit comments