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_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_BASE_URL = https://pre.movieflow.api.huiying.video
|
||||||
NEXT_PUBLIC_API_BASE_URL = https://77.api.qikongjian.com
|
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>} 用户信息对象
|
* @returns {Promise<any>} 用户信息对象
|
||||||
*/
|
*/
|
||||||
export const getUserProfile = async (): Promise<any> => {
|
export const getUserProfile = async (): Promise<any> => {
|
||||||
const t = {
|
// const t = {
|
||||||
id: 'fcb6768b6f49449387e6617f75baabc0',
|
// id: 'fcb6768b6f49449387e6617f75baabc0',
|
||||||
userId: 'fcb6768b6f49449387e6617f75baabc0',
|
// userId: 'fcb6768b6f49449387e6617f75baabc0',
|
||||||
username: 'gxy',
|
// username: 'gxy',
|
||||||
name: 'gxy',
|
// name: 'gxy',
|
||||||
email: 'moviflow66@test.com',
|
// email: 'moviflow66@test.com',
|
||||||
role: 'USER',
|
// role: 'USER',
|
||||||
isActive: 1,
|
// isActive: 1,
|
||||||
authType: 'LOCAL',
|
// authType: 'LOCAL',
|
||||||
lastLogin: new Date(),
|
// lastLogin: new Date(),
|
||||||
}
|
// }
|
||||||
setUser(t);
|
// setUser(t);
|
||||||
return t;
|
// return t;
|
||||||
try {
|
try {
|
||||||
const token = getToken();
|
const token = getToken();
|
||||||
if (!token) {
|
if (!token) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user