20260325稳定版

This commit is contained in:
2026-03-25 15:59:24 +08:00
commit 0decd78604
470 changed files with 53100 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
const MAIN_API_FN = () => {
if (process.env.NODE_ENV === 'development') {
// return 'http://127.0.0.1:10051'
return 'https://guoxue.gxwebsoft.com'
} else {
return 'https://guoxue.gxwebsoft.com'
}
}
const MAIN_WS_FN = () => {
if (process.env.NODE_ENV === 'development') {
return 'ws://127.0.0.1:10051/chat'
// return 'wss://guoxue.gxwebsoft.com/chat'
} else {
return 'wss://guoxue.gxwebsoft.com/chat'
}
}
export const MAIN_API = MAIN_API_FN()
export const WS_API = MAIN_WS_FN()
export const API = `${MAIN_API}/api`