diff --git a/src/service/global.ts b/src/service/global.ts index 64c626796..0ed87b340 100755 --- a/src/service/global.ts +++ b/src/service/global.ts @@ -6,6 +6,7 @@ import ENV from '@/utils/env'; //获取所有频道 export async function getGlobalSetting() { + console.log("env:",ENV.FORGE_SERVER); return Fetch(`${ENV.FORGE_SERVER}/api/setting.json`, { method: 'Get', }); diff --git a/src/utils/env.ts b/src/utils/env.ts index 3be960959..a6a7b990d 100755 --- a/src/utils/env.ts +++ b/src/utils/env.ts @@ -87,7 +87,7 @@ export const GlobalConfig: ConfigProps = { IMG_SERVER: 'https://ali-cdn.educoder.net', FORGE: "https://code.educoder.net/", QQLoginCB: encodeURIComponent("https://www.educoder.net"), - FORGE_SERVER:"https://testforgeplus.trustie.net" + FORGE_SERVER:"https://gitlink.org.cn" }, // test newTest: { @@ -127,13 +127,13 @@ export const GlobalConfig: ConfigProps = { FORGE_SERVER:"https://testforgeplus.trustie.net" }, build: { - API_SERVER: '', + 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:"https://gitlink.org.cn" + FORGE_SERVER:"" }, }; export default GlobalConfig[window.ENV || "dev"]