From 12eeab6d2d55939bb2d4126107c5b84285dfb200 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 28 Feb 2026 09:24:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8=20tt.requestAccess=20?= =?UTF-8?q?=E6=9B=BF=E4=BB=A3=20tt.requestAuthCode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根据飞书官方文档,网页应用免登应使用 tt.requestAccess 而非 tt.requestAuthCode 参数名从 appId 改为 appID --- frontend/src/pages/login/index.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/login/index.tsx b/frontend/src/pages/login/index.tsx index 015e006..4b0433e 100644 --- a/frontend/src/pages/login/index.tsx +++ b/frontend/src/pages/login/index.tsx @@ -148,14 +148,15 @@ export default function Login() { return } - // 调用飞书免登 - window.tt.requestAuthCode({ - appId: appId, + // 调用飞书免登(使用 tt.requestAccess) + window.tt.requestAccess({ + appID: appId, + scopeList: [], success: (res: any) => { handleFeishuLogin(res.code, companyParam) }, fail: (error: any) => { - console.error('requestAuthCode 失败:', error) + console.error('requestAccess 失败:', error) setLoading(false) Toast.show('免登失败:' + (error.errMsg || JSON.stringify(error))) },