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
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:
parent
61ab0ea225
commit
1e7175edf5
@ -148,8 +148,8 @@ class KRSplashController extends GetxController {
|
|||||||
print('📞 KRSiteConfigService().initialize() 返回: $crispId');
|
print('📞 KRSiteConfigService().initialize() 返回: $crispId');
|
||||||
print('AppConfig website_id 已更新为: ${config.kr_website_id}');
|
print('AppConfig website_id 已更新为: ${config.kr_website_id}');
|
||||||
|
|
||||||
print('[SPLASH_TIMING] ✅ 网站配置初始化成功');
|
// print('[SPLASH_TIMING] ✅ 网站配置初始化成功');
|
||||||
await _kr_checkAndPerformDeviceLogin();
|
// await _kr_checkAndPerformDeviceLogin();
|
||||||
} else {
|
} else {
|
||||||
print('⚠️ 网站配置初始化失败,将使用默认配置');
|
print('⚠️ 网站配置初始化失败,将使用默认配置');
|
||||||
KRLogUtil.kr_w('⚠️ 网站配置初始化失败,将使用默认配置', tag: 'SplashController');
|
KRLogUtil.kr_w('⚠️ 网站配置初始化失败,将使用默认配置', tag: 'SplashController');
|
||||||
@ -251,7 +251,16 @@ class KRSplashController extends GetxController {
|
|||||||
KRLogUtil.kr_e('⏱️ 初始化超时: $e', tag: 'SplashController');
|
KRLogUtil.kr_e('⏱️ 初始化超时: $e', tag: 'SplashController');
|
||||||
print('⏱️ 初始化超时,直接跳转到主页');
|
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) {
|
} on SocketException catch (e) {
|
||||||
// 🔧 P2优化:网络连接错误
|
// 🔧 P2优化:网络连接错误
|
||||||
KRLogUtil.kr_e('❌ 网络连接错误: $e', tag: 'SplashController');
|
KRLogUtil.kr_e('❌ 网络连接错误: $e', tag: 'SplashController');
|
||||||
|
|||||||
@ -90,7 +90,7 @@ class KRSplashView extends GetView<KRSplashController> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(height: 16.h),
|
SizedBox(height: 16.h),
|
||||||
// 🔧 P3优化:添加跳过按钮
|
/*// 🔧 P3优化:添加跳过按钮
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed: controller.kr_skipInitialization,
|
onPressed: controller.kr_skipInitialization,
|
||||||
style: TextButton.styleFrom(
|
style: TextButton.styleFrom(
|
||||||
@ -107,7 +107,7 @@ class KRSplashView extends GetView<KRSplashController> {
|
|||||||
color: Colors.grey,
|
color: Colors.grey,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),*/
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user