diff --git a/src/passport/invite/index.tsx b/src/passport/invite/index.tsx index 12d5af0..0c00cc1 100644 --- a/src/passport/invite/index.tsx +++ b/src/passport/invite/index.tsx @@ -75,10 +75,12 @@ const InvitePage: React.FC = () => { const fetchInviteInfo = async (inviteToken: string) => { try { const res = await Taro.request({ - url: `${SERVER_API_URL}/api/_app/developer/invite/info`, + url: `${SERVER_API_URL}/api/_app/developer/invite/info?token=${encodeURIComponent(inviteToken)}`, method: 'GET', - data: { token: inviteToken }, - header: { 'content-type': 'application/json' } + header: { + 'content-type': 'application/json', + 'TenantId': 5 + } }); if (res.data.code === 200 || res.data.code === 0) { @@ -87,6 +89,7 @@ const InvitePage: React.FC = () => { setError(res.data.message || '邀请信息获取失败'); } } catch (err: any) { + console.error('获取邀请信息失败:', err); setError(err.message || '网络请求失败'); } finally { setLoading(false);