修复lib/auth.ts中BASE_URL变量名错误

This commit is contained in:
qikongjian 2025-09-19 21:26:22 +08:00
parent e161cbb05b
commit 09b8cfabe1

View File

@ -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<RegisterUserResponse> => {
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',