diff --git a/src/MaaCore/Task/Miscellaneous/AccountSwitchTask.cpp b/src/MaaCore/Task/Miscellaneous/AccountSwitchTask.cpp index 87e4476f71..0f23ec11c9 100644 --- a/src/MaaCore/Task/Miscellaneous/AccountSwitchTask.cpp +++ b/src/MaaCore/Task/Miscellaneous/AccountSwitchTask.cpp @@ -36,7 +36,7 @@ bool asst::AccountSwitchTask::_run() bool equal = false; Log.info(m_client_type); - if (m_client_type == "Official") { + if (m_client_type == "Official" || m_client_type == "txwy") { equal = equal_current_account(); } else if (m_client_type == "Bilibili") { @@ -77,6 +77,9 @@ bool asst::AccountSwitchTask::navigate_to_start_page() else if (last_name == "AccountManagerBili") { return true; } + else if (last_name == "AccountManagerTxwy") { + return true; + } return false; } @@ -148,7 +151,7 @@ bool asst::AccountSwitchTask::select_account() sleep(200); auto raw_img = ctrler()->get_image(); OCRer ocr(ctrler()->get_image()); - if (m_client_type == "Official") { + if (m_client_type == "Official" || m_client_type == "txwy") { ocr.set_use_char_model(true); } else if (m_client_type == "Bilibili") { diff --git a/src/MaaCore/Task/Miscellaneous/AccountSwitchTask.h b/src/MaaCore/Task/Miscellaneous/AccountSwitchTask.h index 83052b5151..6ec1cc5845 100644 --- a/src/MaaCore/Task/Miscellaneous/AccountSwitchTask.h +++ b/src/MaaCore/Task/Miscellaneous/AccountSwitchTask.h @@ -36,6 +36,6 @@ private: std::string m_target_account; std::string m_client_type; // 客户端类型 const std::vector - SupportedClientType = { "Official", "Bilibili" /*, "YoStarEN", "YoStarJP", "YoStarKR", "txwy" */ }; + SupportedClientType = { "Official", "Bilibili", "txwy" /*, "YoStarEN", "YoStarJP", "YoStarKR" */ }; }; }