forked from Gitlink/forgeplus-react
get user info
This commit is contained in:
parent
d95993dfbb
commit
7a6b34f8c7
|
@ -26,7 +26,7 @@ export async function LoginOut(params: any) {
|
|||
});
|
||||
}
|
||||
export async function getUserInfo(params: any) {
|
||||
return Fetch(`/api/users/get_user_info.json`, {
|
||||
return Fetch(`${ENV.FORGE_SERVER}/api/users/get_user_info.json`, {
|
||||
method: 'get',
|
||||
params: {...params,}
|
||||
});
|
||||
|
|
|
@ -109,13 +109,13 @@ export const GlobalConfig: ConfigProps = {
|
|||
FORGE_SERVER:"https://testforgeplus.trustie.net"
|
||||
},
|
||||
preBuild: {
|
||||
API_SERVER: '',
|
||||
API_SERVER: 'https://data.educoder.net',
|
||||
IMG_SERVER: 'https://preali-cdn.educoder.net',
|
||||
REPORT_SERVER: "http://192.168.1.57:3001",
|
||||
FORGE: "https://forge.educoder.net/",
|
||||
SSH_SERVER: "wss://pre-webssh.educoder.net",
|
||||
QQLoginCB: encodeURIComponent("https://test-newweb.educoder.net"),
|
||||
FORGE_SERVER:"https://testforgeplus.trustie.net"
|
||||
FORGE_SERVER:"https://pre.gitlink.org.cn"
|
||||
},
|
||||
newWeb: {
|
||||
API_SERVER: 'https://test-newweb.educoder.net',
|
||||
|
@ -127,13 +127,13 @@ export const GlobalConfig: ConfigProps = {
|
|||
FORGE_SERVER:"https://testforgeplus.trustie.net"
|
||||
},
|
||||
build: {
|
||||
API_SERVER: 'https://data.educoder.net/',
|
||||
API_SERVER: 'https://data.educoder.net',
|
||||
IMG_SERVER: 'https://ali-cdn.educoder.net',
|
||||
REPORT_SERVER: "http://192.168.1.57:3001",
|
||||
FORGE: "https://forge.educoder.net/",
|
||||
SSH_SERVER: "wss://webssh.educoder.net",
|
||||
QQLoginCB: encodeURIComponent("https://www.educoder.net"),
|
||||
FORGE_SERVER:""
|
||||
FORGE_SERVER:"https://gitlink.org.cn",
|
||||
},
|
||||
};
|
||||
export default GlobalConfig[window.ENV || "dev"]
|
||||
|
|
Loading…
Reference in New Issue