From ef715d569f25ced944aad8bb250cbcddb143b648 Mon Sep 17 00:00:00 2001 From: xkeyC <3334969096@qq.com> Date: Sun, 31 Mar 2024 13:30:56 +0800 Subject: [PATCH] fix: miss TECH-PREVIEW --- lib/common/conf/const_conf.dart | 2 +- lib/ui/home/dialogs/home_game_login_dialog_ui_model.dart | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/common/conf/const_conf.dart b/lib/common/conf/const_conf.dart index 6ebdef5..fd3b2ba 100644 --- a/lib/common/conf/const_conf.dart +++ b/lib/common/conf/const_conf.dart @@ -2,7 +2,7 @@ class ConstConf { static const String appVersion = "2.10.10 Beta"; static const int appVersionCode = 45; static const String appVersionDate = "2024-03-30"; - static const gameChannels = ["LIVE", "PTU", "EPTU"]; + static const gameChannels = ["LIVE", "PTU", "EPTU", "TECH-PREVIEW"]; static const isMSE = String.fromEnvironment("MSE", defaultValue: "false") == "true"; } diff --git a/lib/ui/home/dialogs/home_game_login_dialog_ui_model.dart b/lib/ui/home/dialogs/home_game_login_dialog_ui_model.dart index fd114cb..4d372fe 100644 --- a/lib/ui/home/dialogs/home_game_login_dialog_ui_model.dart +++ b/lib/ui/home/dialogs/home_game_login_dialog_ui_model.dart @@ -259,12 +259,8 @@ class HomeGameLoginUIModel extends _$HomeGameLoginUIModel { String getChannelID(String installPath) { if (installPath.endsWith("\\LIVE")) { return "LIVE"; - } else if (installPath.endsWith("\\PTU")) { - return "PTU"; - } else if (installPath.endsWith("\\EPTU")) { - return "EPTU"; } - return "LIVE"; + return "PTU"; } _savePwd(String inputEmail, String inputPassword) async {