fix: 飞书登录回调地址改为https协议

- 重定向URI改为: https://xsm.dev.hnxinyouhe.com/login

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-02-26 00:33:14 +08:00
parent e4e2be904b
commit 1780822528
+3 -3
View File
@@ -25,12 +25,12 @@ export default function Login() {
const redirectToFeishu = () => {
// 飞书应用配置
const appId = 'cli_a8033d607cba500d'
// 重定向URI:前端登录页面(飞书授权后会回调到这里)
const redirectUri = encodeURIComponent('http://xsm.dev.hnxinyouhe.com/login')
// 重定向URI:前端登录页面(使用https)
const redirectUri = encodeURIComponent('https://xsm.dev.hnxinyouhe.com/login')
// 租户密钥(新友合公司)
const tenantKey = '14e7bc0fe5985740'
// 构建飞书授权 URL(scope为空表示使用默认权限)
// 构建飞书授权 URL
const authUrl = `https://open.feishu.cn/open-apis/authen/v1/oidc/authorize?app_id=${appId}&redirect_uri=${redirectUri}&state=${tenantKey}`
console.log('飞书授权 URL:', authUrl)