This commit is contained in:
北枳 2025-09-05 20:45:36 +08:00
parent 5c2dd0aef4
commit 54e781d8d7
2 changed files with 14 additions and 14 deletions

View File

@ -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
# 失败率

View File

@ -248,19 +248,19 @@ export const validateOAuthState = (state: string): boolean => {
* @returns {Promise<any>}
*/
export const getUserProfile = async (): Promise<any> => {
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) {