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

(cherry picked from commit 603afe3ca6ffc6838e83ff8e1980dcc9e615733b)
This commit is contained in:
Rust 2025-10-28 20:25:06 -07:00 committed by speakeloudest
parent fc4ecf874b
commit 773047838c
5 changed files with 9 additions and 15 deletions

View File

@ -26,6 +26,9 @@ jobs:
- name: Get dependencies
run: flutter pub get
- name: Generate code
run: dart run build_runner build --delete-conflicting-outputs
- name: Build Windows Debug
run: flutter build windows

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

View File

@ -72,7 +72,7 @@ abstract class Api {
// static const String kr_getInviteData = "/v1/public/invite/code";
///
static const String kr_config = "/v1/app/auth/config";
static const String kr_config = "/v1/common/site/config";
/// 线
static const String kr_getUserOnlineTimeStatistics =

View File

@ -123,7 +123,7 @@ class KRUserApi {
await HttpUtil.getInstance().request<KRConfigData>(
Api.kr_config,
data,
method: HttpMethod.POST,
method: HttpMethod.GET,
isShowLoading: false,
);
if (!baseResponse.isSuccess) {

@ -1 +1 @@
Subproject commit f993a57755c37e08b02042037cbbf508c66c51f9
Subproject commit 4e7fe336554e87880be08fddbfc778cfc5f6b9f1