绑定设备+覆盖模式+控制显示bug+在线更新

This commit is contained in:
2026-09-01 08:59:20 +08:00
parent 0fa67a127b
commit 61bce2c1cf
49 changed files with 2424 additions and 720 deletions

View File

@@ -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';
}