feat: 初始化时配置项未完成配置,导致客服有bug,
This commit is contained in:
@@ -36,6 +36,7 @@ import 'package:kaer_with_panels/app/services/singbox_imp/kr_sing_box_imp.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:kaer_with_panels/app/utils/kr_init_log_collector.dart'; // 🔧 新增:导入日志收集器
|
||||
import 'package:kaer_with_panels/app/utils/kr_latency_tester.dart'; // 🔧 新增:导入真实延迟测试工具
|
||||
import 'package:kaer_with_panels/app/utils/account_guard.dart';
|
||||
|
||||
class KRHomeController extends GetxController with WidgetsBindingObserver {
|
||||
// 🔧 新增:日志收集器实例
|
||||
@@ -1871,21 +1872,9 @@ class KRHomeController extends GetxController with WidgetsBindingObserver {
|
||||
super.onReady();
|
||||
|
||||
Future.delayed(const Duration(milliseconds: 200), () async {
|
||||
final rawAccount = KRAppRunData.getInstance().kr_account.value;
|
||||
final account = rawAccount?.trim();
|
||||
|
||||
if (account == null ||
|
||||
account.isEmpty ||
|
||||
account.toLowerCase() == 'null') {
|
||||
await HIDialog.show(
|
||||
message: '未检测到账号信息,请重试初始化',
|
||||
confirmText: '重试',
|
||||
preventBackDismiss: true,
|
||||
onConfirm: () {
|
||||
Get.offAllNamed(Routes.KR_SPLASH);
|
||||
},
|
||||
);
|
||||
}
|
||||
ensureAccountExists().then((ok) {
|
||||
print('ok');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user