diff --git a/lib/auth.ts b/lib/auth.ts index a5ca90c..bb38211 100644 --- a/lib/auth.ts +++ b/lib/auth.ts @@ -9,8 +9,8 @@ import type { } from '@/app/types/google-oauth'; // API配置 -//const JAVA_BASE_URL = 'http://192.168.120.36:8080'; -const JAVA_BASE_URL = process.env.NEXT_PUBLIC_JAVA_URL || 'https://77.app.java.auth.qikongjian.com'; +const JAVA_BASE_URL = 'http://192.168.120.36:8080'; +//const JAVA_BASE_URL = process.env.NEXT_PUBLIC_JAVA_URL || 'https://77.app.java.auth.qikongjian.com'; // Token存储键 const TOKEN_KEY = 'token'; const USER_KEY = 'currentUser'; @@ -547,7 +547,7 @@ export const registerUserWithInvite = async ({ invite_code?: string; }): Promise => { try { - const response = await fetch(`${BASE_URL}/api/user_fission/register_with_invite`, { + const response = await fetch(`${JAVA_BASE_URL}/api/user_fission/register_with_invite`, { method: 'POST', headers: { 'Accept': 'application/json',