去掉调试模式并且修正在线打包windows
(cherry picked from commit 603afe3ca6ffc6838e83ff8e1980dcc9e615733b)
This commit is contained in:
parent
fc4ecf874b
commit
773047838c
3
.github/workflows/build-windows.yml
vendored
3
.github/workflows/build-windows.yml
vendored
@ -26,6 +26,9 @@ jobs:
|
|||||||
- name: Get dependencies
|
- name: Get dependencies
|
||||||
run: flutter pub get
|
run: flutter pub get
|
||||||
|
|
||||||
|
- name: Generate code
|
||||||
|
run: dart run build_runner build --delete-conflicting-outputs
|
||||||
|
|
||||||
- name: Build Windows Debug
|
- name: Build Windows Debug
|
||||||
run: flutter build windows
|
run: flutter build windows
|
||||||
|
|
||||||
|
|||||||
@ -1135,18 +1135,9 @@ class AppConfig {
|
|||||||
|
|
||||||
_isInitializing = true;
|
_isInitializing = true;
|
||||||
try {
|
try {
|
||||||
// Debug 模式下直接使用固定地址,跳过所有配置请求和域名切换逻辑
|
// 所有模式都走正常的配置请求流程
|
||||||
// if (kDebugMode) {
|
KRLogUtil.kr_i('🚀 开始配置初始化', tag: 'AppConfig');
|
||||||
// KRLogUtil.kr_i('🐛 Debug 模式,使用固定 API 地址,跳过配置请求', tag: 'AppConfig');
|
await _startAutoRetry(onSuccess);
|
||||||
// if (onSuccess != null) {
|
|
||||||
// await onSuccess();
|
|
||||||
// }
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
if (onSuccess != null) {
|
|
||||||
await onSuccess();
|
|
||||||
}
|
|
||||||
// await _startAutoRetry(onSuccess);
|
|
||||||
} finally {
|
} finally {
|
||||||
_isInitializing = false;
|
_isInitializing = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -72,7 +72,7 @@ abstract class Api {
|
|||||||
// static const String kr_getInviteData = "/v1/public/invite/code";
|
// 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 =
|
static const String kr_getUserOnlineTimeStatistics =
|
||||||
|
|||||||
@ -123,7 +123,7 @@ class KRUserApi {
|
|||||||
await HttpUtil.getInstance().request<KRConfigData>(
|
await HttpUtil.getInstance().request<KRConfigData>(
|
||||||
Api.kr_config,
|
Api.kr_config,
|
||||||
data,
|
data,
|
||||||
method: HttpMethod.POST,
|
method: HttpMethod.GET,
|
||||||
isShowLoading: false,
|
isShowLoading: false,
|
||||||
);
|
);
|
||||||
if (!baseResponse.isSuccess) {
|
if (!baseResponse.isSuccess) {
|
||||||
|
|||||||
2
libcore
2
libcore
@ -1 +1 @@
|
|||||||
Subproject commit f993a57755c37e08b02042037cbbf508c66c51f9
|
Subproject commit 4e7fe336554e87880be08fddbfc778cfc5f6b9f1
|
||||||
Loading…
x
Reference in New Issue
Block a user