去掉调试模式并且修正在线打包windows

(cherry picked from commit 603afe3ca6ffc6838e83ff8e1980dcc9e615733b)
This commit is contained in:
2025-10-28 20:25:06 -07:00
committed by speakeloudest
parent fc4ecf874b
commit 773047838c
5 changed files with 9 additions and 15 deletions
+3 -12
View File
@@ -1135,18 +1135,9 @@ class AppConfig {
_isInitializing = true;
try {
// Debug 模式下直接使用固定地址,跳过所有配置请求和域名切换逻辑
// if (kDebugMode) {
// KRLogUtil.kr_i('🐛 Debug 模式,使用固定 API 地址,跳过配置请求', tag: 'AppConfig');
// if (onSuccess != null) {
// await onSuccess();
// }
// return;
// }
if (onSuccess != null) {
await onSuccess();
}
// await _startAutoRetry(onSuccess);
// 所有模式都走正常的配置请求流程
KRLogUtil.kr_i('🚀 开始配置初始化', tag: 'AppConfig');
await _startAutoRetry(onSuccess);
} finally {
_isInitializing = false;
}