From 09b8cfabe16b2ed37a5e3bac103c572e406c1f4f Mon Sep 17 00:00:00 2001 From: qikongjian Date: Fri, 19 Sep 2025 21:26:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dlib/auth.ts=E4=B8=ADBASE=5FUR?= =?UTF-8?q?L=E5=8F=98=E9=87=8F=E5=90=8D=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/auth.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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',