forked from 77media/video-flow
撤掉
This commit is contained in:
parent
5c2dd0aef4
commit
54e781d8d7
@ -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
|
||||
# 失败率
|
||||
|
||||
26
lib/auth.ts
26
lib/auth.ts
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user