绑定设备+覆盖模式+控制显示bug+在线更新
This commit is contained in:
20
lib/core/env/env_config.dart
vendored
20
lib/core/env/env_config.dart
vendored
@@ -14,14 +14,14 @@ class EnvConfig {
|
||||
|
||||
static bool get isProduction => environment == 'prod';
|
||||
|
||||
/// TCP 服务器配置
|
||||
static String get tcpIp => '1.95.137.212';
|
||||
|
||||
static int get tcpPort {
|
||||
// 测试服: 59016, 生产服: 9001(目前暂时都走测试服 59004,回退时改回 9001)
|
||||
if (environment == 'prod') {
|
||||
return 59004;
|
||||
}
|
||||
return 59004; // TCP 端口
|
||||
}
|
||||
// ─── 服务器 IP(测试/生产共用同一台机器) ───
|
||||
static const String serverHost = '1.95.137.212';
|
||||
|
||||
// ─── TCP 控制长连接 ───
|
||||
static String get tcpIp => serverHost;
|
||||
static int get tcpPort => isProduction ? 9001 : 59004;
|
||||
|
||||
// ─── HTTP 接口 ───
|
||||
static int get httpPort => isProduction ? 8081 : 59003;
|
||||
static String get baseUrl => 'http://$serverHost:$httpPort';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user