diff --git a/src/passport/invite/index.tsx b/src/passport/invite/index.tsx index 8e8f99b..bcdd196 100644 --- a/src/passport/invite/index.tsx +++ b/src/passport/invite/index.tsx @@ -2,6 +2,9 @@ import React, { useState, useEffect } from 'react'; import { View, Text, Button, Image } from '@tarojs/components'; import Taro, { useRouter } from '@tarojs/taro'; import { SERVER_API_URL } from "@/utils/server"; + +// 邀请相关接口使用独立的 API 域名 +const INVITE_API_URL = 'https://websopy-api.websoft.top'; import { TenantId } from "@/config/app"; /** @@ -80,7 +83,7 @@ const InvitePage: React.FC = () => { console.log('请求头:', { 'content-type': 'application/json', TenantId }); const res = await Taro.request({ - url: `${SERVER_API_URL}/api/_app/developer/invite/info?token=${encodeURIComponent(inviteToken)}`, + url: `${INVITE_API_URL}/developer/invite/info?token=${encodeURIComponent(inviteToken)}`, method: 'GET', header: { 'content-type': 'application/json', @@ -139,7 +142,7 @@ const InvitePage: React.FC = () => { setAuthLoading(true); const res = await Taro.request({ - url: `${SERVER_API_URL}/api/_app/developer/invite/accept`, + url: `${INVITE_API_URL}/developer/invite/accept`, method: 'POST', data: { token,