Files
tongxunruanjian/mobile/lib/config.dart
T
KIMI b95159f7eb 新增 mobile/:畅联手机端 Flutter 工程(B-58)
- 登录:工号+密码走 account-service /api/login,自动登录、被踢下线回登录页
- 消息:会话列表(未读角标/免打扰/时间)、单聊群聊、文字/语音/图片/文件消息、失败重发、历史分页
- 通讯录:新的同事/我的群聊入口、按部门分组(好友 ex 字段)、搜索
- 通话:一对一语音通话(信令走 OpenIM 自定义消息 + LiveKit,token 走 /api/rtc_token)
- 界面按确认效果图 m1/m2/m3 实现,主色 #3B87F5,四态视图齐全,无英文残留
2026-08-09 01:28:12 +08:00

34 lines
1.2 KiB
Dart
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/// 服务器地址集中配置。
///
/// 服务器换了地址只需要改这一个文件:
/// 1. 改下面的 [serverHost] 为新的服务器内网 IP(或域名);
/// 2. 如果端口也被重新映射,改对应端口常量即可。
library;
/// 服务器内网地址(不带协议、不带端口)
const String serverHost = '192.168.200.11';
/// OpenIM API 端口(服务端 docker 映射,默认 10002
const int apiPort = 10002;
/// OpenIM WebSocket 端口(默认 10001
const int wsPort = 10001;
/// LiveKit 信令端口(注意:服务端已重映射为 17880,不是默认的 7880)
const int livekitPort = 17880;
/// 公司账号登录后端端口(B-60 account-serverdocker 默认映射 10010
const int authApiPort = 10010;
/// OpenIM API 地址,例:http://192.168.200.11:10002
const String apiAddr = 'http://$serverHost:$apiPort';
/// OpenIM 消息长连接地址,例:ws://192.168.200.11:10001
const String wsAddr = 'ws://$serverHost:$wsPort';
/// LiveKit 连接地址,例:ws://192.168.200.11:17880
const String livekitUrl = 'ws://$serverHost:$livekitPort';
/// 公司账号登录后端地址,例:http://192.168.200.11:10010
const String authApiBase = 'http://$serverHost:$authApiPort';