From 40cbee946186aac00a6a4cb19fce5944d7262847 Mon Sep 17 00:00:00 2001 From: valencia_fly Date: Sun, 28 Jul 2024 17:34:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9C=A8=E8=A7=A3?= =?UTF-8?q?=E6=9E=90until=E5=91=BD=E4=BB=A4=E5=9D=97=E6=97=B6=EF=BC=8Ccate?= =?UTF-8?q?gory=E5=AD=97=E6=AE=B5=E6=98=AF=E5=86=B2=E7=AA=81=E7=9A=84?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaCore/Config/Miscellaneous/CopilotConfig.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/MaaCore/Config/Miscellaneous/CopilotConfig.cpp b/src/MaaCore/Config/Miscellaneous/CopilotConfig.cpp index 12a2e3a077..fe43fc2afa 100644 --- a/src/MaaCore/Config/Miscellaneous/CopilotConfig.cpp +++ b/src/MaaCore/Config/Miscellaneous/CopilotConfig.cpp @@ -361,11 +361,10 @@ bool asst::CopilotConfig::parse_action(const json::value& action_info, asst::bat auto& until = action.payload.emplace(); // 必选字段 - until.category = TriggerInfo::loadCategoryFrom(action_info.at("category").as_string()); + until.category = TriggerInfo::loadCategoryFrom(action_info.at("mode").as_string()); switch (until.category) { case TriggerInfo::Category::Any: case TriggerInfo::Category::All: - case TriggerInfo::Category::Succ: break; default: until.category = TriggerInfo::Category::All;