From e4e2be904b1866cdcebd135b27e32eb8f2e839f6 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 26 Feb 2026 00:32:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E9=A3=9E=E4=B9=A6?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=9B=9E=E8=B0=83=E5=9C=B0=E5=9D=80=E4=B8=BA?= =?UTF-8?q?http=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 重定向URI改为: http://xsm.dev.hnxinyouhe.com/login - 移除scope参数,使用飞书默认权限 Co-Authored-By: Claude Opus 4.6 --- frontend/src/pages/login/index.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/frontend/src/pages/login/index.tsx b/frontend/src/pages/login/index.tsx index 21dd059..307162d 100644 --- a/frontend/src/pages/login/index.tsx +++ b/frontend/src/pages/login/index.tsx @@ -25,15 +25,13 @@ export default function Login() { const redirectToFeishu = () => { // 飞书应用配置 const appId = 'cli_a8033d607cba500d' - // 使用公网域名作为回调地址 - const redirectUri = encodeURIComponent('https://xsm.dev.hnxinyouhe.com/login') + // 重定向URI:前端登录页面(飞书授权后会回调到这里) + const redirectUri = encodeURIComponent('http://xsm.dev.hnxinyouhe.com/login') // 租户密钥(新友合公司) const tenantKey = '14e7bc0fe5985740' - // 请求权限范围 - const scope = encodeURIComponent('email:readonly phone:readonly contact:readonly avatar:readonly') - // 构建飞书授权 URL - const authUrl = `https://open.feishu.cn/open-apis/authen/v1/oidc/authorize?app_id=${appId}&redirect_uri=${redirectUri}&scope=${scope}&state=${tenantKey}` + // 构建飞书授权 URL(scope为空表示使用默认权限) + const authUrl = `https://open.feishu.cn/open-apis/authen/v1/oidc/authorize?app_id=${appId}&redirect_uri=${redirectUri}&state=${tenantKey}` console.log('飞书授权 URL:', authUrl)