优化和路径规划新适配
This commit is contained in:
13
lib/core/env/env_config.dart
vendored
13
lib/core/env/env_config.dart
vendored
@@ -1,7 +1,7 @@
|
||||
class EnvConfig {
|
||||
static const String environment = String.fromEnvironment(
|
||||
'ENV',
|
||||
defaultValue: 'dev',
|
||||
defaultValue: 'prod',
|
||||
);
|
||||
|
||||
static String get sentryDsn {
|
||||
@@ -13,4 +13,15 @@ class EnvConfig {
|
||||
}
|
||||
|
||||
static bool get isProduction => environment == 'prod';
|
||||
|
||||
/// TCP 服务器配置
|
||||
static String get tcpIp => '1.95.137.212';
|
||||
|
||||
static int get tcpPort {
|
||||
// 测试服: 59016, 生产服: 9001
|
||||
if (environment == 'prod') {
|
||||
return 9001;
|
||||
}
|
||||
return 9001; // TCP 端口
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user