From b06552eaf14ebff1ae3c85e4a49ad7fc05661b20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Sat, 11 Apr 2026 19:09:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(invite):=20=E4=BF=AE=E6=AD=A3=E9=82=80?= =?UTF-8?q?=E8=AF=B7=E6=8E=A5=E5=8F=A3=E4=BD=BF=E7=94=A8=E7=8B=AC=E7=AB=8B?= =?UTF-8?q?API=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将邀请相关接口的请求地址由通用API域名改为独立的INVITE_API_URL - 修改获取邀请信息接口的请求URL - 修改接受邀请接口的请求URL - 确保请求头和参数传递保持一致 --- src/passport/invite/index.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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,