chore: 移除已迁移的旧文件
This commit is contained in:
@@ -91,13 +91,16 @@ export default function DebugFeishuPage() {
|
||||
}, [])
|
||||
|
||||
const testFeishuLogin = async () => {
|
||||
const appId = 'cli_a8033d607cba500d'
|
||||
// 从 URL 获取 company 参数
|
||||
const urlParams = new URLSearchParams(window.location.search)
|
||||
const companyParam = urlParams.get('company')
|
||||
console.log('🔍 URL 中的 company 参数:', companyParam)
|
||||
|
||||
// 优先使用 tt 对象
|
||||
if (window.tt && typeof window.tt.requestAuthCode === 'function') {
|
||||
console.log('🔧 使用 tt.requestAuthCode')
|
||||
// 不传 appId,让飞书自动选择(后端会根据 company 参数处理)
|
||||
window.tt.requestAuthCode({
|
||||
appId: appId,
|
||||
success: (res: any) => {
|
||||
alert('✅ 获取授权码成功: ' + res.code?.substring(0, 30))
|
||||
console.log('授权码:', res)
|
||||
@@ -117,7 +120,7 @@ export default function DebugFeishuPage() {
|
||||
try {
|
||||
if (typeof h5sdk.requestAuthCode === 'function') {
|
||||
h5sdk.requestAuthCode({
|
||||
appId: appId,
|
||||
// 不传 appId,让飞书自动选择(后端会根据 company 参数处理)
|
||||
success: (res: any) => {
|
||||
alert('✅ h5sdk 获取授权码成功: ' + res.code?.substring(0, 30))
|
||||
console.log('授权码:', res)
|
||||
@@ -141,7 +144,7 @@ export default function DebugFeishuPage() {
|
||||
try {
|
||||
if (typeof bridge.requestAuthCode === 'function') {
|
||||
bridge.requestAuthCode({
|
||||
appId: appId,
|
||||
// 不传 appId,让飞书自动选择(后端会根据 company 参数处理)
|
||||
success: (res: any) => {
|
||||
alert('✅ bridge 获取授权码成功: ' + res.code?.substring(0, 30))
|
||||
console.log('授权码:', res)
|
||||
|
||||
Reference in New Issue
Block a user