feat: 删除初始化跳过按钮
Some checks failed
Build Android APK / 编译 libcore.aar (push) Has been cancelled
Build Android APK / 编译 Android APK (release) (push) Has been cancelled
Build Android APK / 创建 GitHub Release (push) Has been cancelled
Build Multi-Platform / 编译 libcore (iOS/tvOS) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Android) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Windows) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (macOS) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Linux) (push) Has been cancelled
Build Multi-Platform / 构建 Android APK (push) Has been cancelled
Build Multi-Platform / 构建 Windows (push) Has been cancelled
Build Multi-Platform / 构建 macOS (push) Has been cancelled
Build Multi-Platform / 构建 Linux (push) Has been cancelled
Build Multi-Platform / 构建 iOS (push) Has been cancelled
Build Multi-Platform / 创建 Release (push) Has been cancelled
Build Windows / 编译 libcore (Windows) (push) Has been cancelled
Build Windows / build (push) Has been cancelled

This commit is contained in:
speakeloudest 2025-10-31 19:52:03 -07:00
parent 61ab0ea225
commit 1e7175edf5
2 changed files with 14 additions and 5 deletions

View File

@ -148,8 +148,8 @@ class KRSplashController extends GetxController {
print('📞 KRSiteConfigService().initialize() 返回: $crispId');
print('AppConfig website_id 已更新为: ${config.kr_website_id}');
print('[SPLASH_TIMING] ✅ 网站配置初始化成功');
await _kr_checkAndPerformDeviceLogin();
// print('[SPLASH_TIMING] ✅ 网站配置初始化成功');
// await _kr_checkAndPerformDeviceLogin();
} else {
print('⚠️ 网站配置初始化失败,将使用默认配置');
KRLogUtil.kr_w('⚠️ 网站配置初始化失败,将使用默认配置', tag: 'SplashController');
@ -251,7 +251,16 @@ class KRSplashController extends GetxController {
KRLogUtil.kr_e('⏱️ 初始化超时: $e', tag: 'SplashController');
print('⏱️ 初始化超时,直接跳转到主页');
//
Get.offAllNamed(Routes.KR_MAIN);
// Get.offAllNamed(Routes.KR_MAIN);
HIDialog.show(
message: '初始化超时,请检查网络或重试',
confirmText: '重试',
preventBackDismiss: true,
onConfirm: () async {
await _kr_initialize(); //
},
);
return;
} on SocketException catch (e) {
// 🔧 P2优化
KRLogUtil.kr_e('❌ 网络连接错误: $e', tag: 'SplashController');

View File

@ -90,7 +90,7 @@ class KRSplashView extends GetView<KRSplashController> {
),
),
SizedBox(height: 16.h),
// 🔧 P3优化
/*// 🔧 P3优化
TextButton(
onPressed: controller.kr_skipInitialization,
style: TextButton.styleFrom(
@ -107,7 +107,7 @@ class KRSplashView extends GetView<KRSplashController> {
color: Colors.grey,
),
),
),
),*/
],
);
}