diff --git a/lib/app/modules/kr_splash/controllers/kr_splash_controller.dart b/lib/app/modules/kr_splash/controllers/kr_splash_controller.dart index e854e0f..06dacec 100755 --- a/lib/app/modules/kr_splash/controllers/kr_splash_controller.dart +++ b/lib/app/modules/kr_splash/controllers/kr_splash_controller.dart @@ -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'); diff --git a/lib/app/modules/kr_splash/views/kr_splash_view.dart b/lib/app/modules/kr_splash/views/kr_splash_view.dart index 58b8ae8..68f10a9 100755 --- a/lib/app/modules/kr_splash/views/kr_splash_view.dart +++ b/lib/app/modules/kr_splash/views/kr_splash_view.dart @@ -90,7 +90,7 @@ class KRSplashView extends GetView { ), ), SizedBox(height: 16.h), - // 🔧 P3优化:添加跳过按钮 + /*// 🔧 P3优化:添加跳过按钮 TextButton( onPressed: controller.kr_skipInitialization, style: TextButton.styleFrom( @@ -107,7 +107,7 @@ class KRSplashView extends GetView { color: Colors.grey, ), ), - ), + ),*/ ], ); }