From 54e781d8d7561d45b152260e92b77c962fa49141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Fri, 5 Sep 2025 20:45:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=A4=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- lib/auth.ts | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.env.development b/.env.development index f1f74e0..354fc4e 100644 --- a/.env.development +++ b/.env.development @@ -1,6 +1,6 @@ NEXT_PUBLIC_JAVA_URL = https://77.app.java.auth.qikongjian.com -NEXT_PUBLIC_BASE_URL = http://192.168.120.36:8000 +NEXT_PUBLIC_BASE_URL = http://77.smartvideo.py.qikongjian.com # NEXT_PUBLIC_BASE_URL = https://pre.movieflow.api.huiying.video NEXT_PUBLIC_API_BASE_URL = https://77.api.qikongjian.com # 失败率 diff --git a/lib/auth.ts b/lib/auth.ts index 06a41c2..f6eb482 100644 --- a/lib/auth.ts +++ b/lib/auth.ts @@ -248,19 +248,19 @@ export const validateOAuthState = (state: string): boolean => { * @returns {Promise} 用户信息对象 */ export const getUserProfile = async (): Promise => { - const t = { - id: 'fcb6768b6f49449387e6617f75baabc0', - userId: 'fcb6768b6f49449387e6617f75baabc0', - username: 'gxy', - name: 'gxy', - email: 'moviflow66@test.com', - role: 'USER', - isActive: 1, - authType: 'LOCAL', - lastLogin: new Date(), - } - setUser(t); - return t; + // const t = { + // id: 'fcb6768b6f49449387e6617f75baabc0', + // userId: 'fcb6768b6f49449387e6617f75baabc0', + // username: 'gxy', + // name: 'gxy', + // email: 'moviflow66@test.com', + // role: 'USER', + // isActive: 1, + // authType: 'LOCAL', + // lastLogin: new Date(), + // } + // setUser(t); + // return t; try { const token = getToken(); if (!token) {