fix(invite): 修正邀请接口使用独立API域名
- 将邀请相关接口的请求地址由通用API域名改为独立的INVITE_API_URL - 修改获取邀请信息接口的请求URL - 修改接受邀请接口的请求URL - 确保请求头和参数传递保持一致
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user