This commit is contained in:
zhutao
2025-12-01 16:00:16 +08:00
parent c67bc730af
commit f5ce40063f
14 changed files with 66 additions and 31 deletions

View File

@@ -8,19 +8,24 @@ class Config {
///获取接口地址
static String baseUrl() {
if (getEnv() == 'dev') {
return 'https://xueguang.test.tuzuu.com/api';
return 'https://xg.test.lifebanktech.com/api';
} else {
return 'https://xueguang.test.tuzuu.com/api';
return 'https://xg.lifebanktech.com/api';
}
}
/// 获取websocket地址
static String wsUrl() {
return "wss://xueguang.test.tuzuu.com/ws";
final url = webUrl();
final wsBase = url.replaceAll('https', 'wss'); // 替换协议
return '$wsBase/ws';
}
///网页域名地址
static String get webUrl => "http://xueguang.test.tuzuu.com";
static String webUrl() {
String url = baseUrl();
return url.replaceAll("/api", "");
}
///声网APPid
static String get swAppId => "011c2fd2e1854511a80c1aebded4eee7";