1
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user