去掉调试模式并且修正在线打包windows
(cherry picked from commit 603afe3ca6ffc6838e83ff8e1980dcc9e615733b)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 =
|
||||
|
||||
@@ -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
Submodule libcore updated: f993a57755...4e7fe33655
Reference in New Issue
Block a user