mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-06-28 13:44:45 +08:00
联网失败时新增错误描述
This commit is contained in:
@ -18,7 +18,7 @@ import 'package:window_manager/window_manager.dart';
|
||||
import '../base/ui.dart';
|
||||
|
||||
class AppConf {
|
||||
static const String appVersion = "2.10.0 Beta";
|
||||
static const String appVersion = "2.10.0+1 Beta";
|
||||
static const int appVersionCode = 35;
|
||||
static const String appVersionDate = "2023-12-06";
|
||||
|
||||
|
@ -17,15 +17,18 @@ class AppGlobalUIModel extends BaseUIModel {
|
||||
Timer? activityThemeColorTimer;
|
||||
|
||||
Future<bool> doCheckUpdate(BuildContext context, {bool init = true}) async {
|
||||
dynamic checkUpdateError;
|
||||
if (!init) {
|
||||
try {
|
||||
await AppConf.checkUpdate();
|
||||
} catch (_) {}
|
||||
} catch (e) {
|
||||
checkUpdateError = e;
|
||||
}
|
||||
}
|
||||
await Future.delayed(const Duration(milliseconds: 100));
|
||||
if (AppConf.networkVersionData == null) {
|
||||
showToast(context,
|
||||
"检查更新失败!请检查网络连接... \n进入离线模式.. \n\n请谨慎在离线模式中使用。 \n当前版本构建日期:${AppConf.appVersionDate}\n QQ群:940696487");
|
||||
"检查更新失败!请检查网络连接... \n进入离线模式.. \n\n请谨慎在离线模式中使用。 \n当前版本构建日期:${AppConf.appVersionDate}\n QQ群:940696487 \n错误信息:$checkUpdateError");
|
||||
return false;
|
||||
}
|
||||
final lastVersion = AppConf.isMSE
|
||||
|
Reference in New Issue
Block a user