fix: 验收包写入公司内网地址,避免 Windows 空 VITE 与 Android 假域名

Windows 补 .env.production 与 endpoints 兜底;Android 默认 host/端口改为内网,启动后重写 HttpUtil/ApiService,Urls 改为 getter。

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
编码工程师
2026-08-20 16:21:40 +08:00
co-authored by Cursor multica-agent
parent 18d890ae7f
commit bbc4dce0b6
10 changed files with 76 additions and 35 deletions
@@ -10,6 +10,7 @@ class CompanyBootstrap {
static Future<void> install() async {
applyOfficialStylesFromTokens();
await DataSp.putServerConfig(AppEndpoints.toServerConfig());
ApiService().setBaseUrl(AppEndpoints.host);
HttpUtil.setBaseUrl(AppEndpoints.apiAddr);
ApiService().setBaseUrl(AppEndpoints.apiAddr);
}
}