更改注册接口域名

This commit is contained in:
qikongjian 2025-09-20 16:29:06 +08:00
parent 8a0e0c6d2a
commit c9f9a0030b

View File

@ -587,7 +587,7 @@ export const registerUser = async ({
inviteCode?: string;
}): Promise<any> => {
try {
const response = await fetch(`${JAVA_BASE_URL}/api/user/register`, {
const response = await fetch(`${BASE_URL}/api/user/register`, {
method: 'POST',
headers: {
'Accept': 'application/json',
@ -627,7 +627,7 @@ export const registerUserWithInvite = async ({
invite_code?: string;
}): Promise<RegisterUserResponse> => {
try {
const response = await fetch(`${JAVA_BASE_URL}/api/user_fission/register_with_invite`, {
const response = await fetch(`${BASE_URL}/api/user_fission/register_with_invite`, {
method: 'POST',
headers: {
'Accept': 'application/json',
@ -659,7 +659,7 @@ export const registerUserWithInvite = async ({
*/
export const sendVerificationLink = async (email: string) => {
try {
const response = await fetch(`${JAVA_BASE_URL}/api/user/sendVerificationLink?email=${email}`);
const response = await fetch(`${BASE_URL}/api/user/sendVerificationLink?email=${email}`);
const data = await response.json();
if(!data.success){
throw new Error(data.message||data.msg)