From b4e538737b100d6ee3583f091ea6fb4098e7e856 Mon Sep 17 00:00:00 2001 From: status102 <102887808+status102@users.noreply.github.com> Date: Tue, 24 Feb 2026 15:17:11 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=A2=AB=E7=A6=81=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E5=85=B3=E5=8D=A1=E9=94=99=E8=AF=AF=E8=BF=9B=E5=85=A5=E5=85=B3?= =?UTF-8?q?=E5=8D=A1=E5=90=8D=E4=BA=8C=E6=AC=A1=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaCore/Vision/Miscellaneous/StageDropsImageAnalyzer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MaaCore/Vision/Miscellaneous/StageDropsImageAnalyzer.cpp b/src/MaaCore/Vision/Miscellaneous/StageDropsImageAnalyzer.cpp index 7b43f4669d..54e70ca7be 100644 --- a/src/MaaCore/Vision/Miscellaneous/StageDropsImageAnalyzer.cpp +++ b/src/MaaCore/Vision/Miscellaneous/StageDropsImageAnalyzer.cpp @@ -54,6 +54,7 @@ bool asst::StageDropsImageAnalyzer::analyze_stage_code() { LogTraceFunction; + static const std::string invalid_stage_code = "_INVALID_"; std::string stage_code; Rect text_rect; @@ -69,7 +70,7 @@ bool asst::StageDropsImageAnalyzer::analyze_stage_code() } // 如果不带 '-',用非 char 模型再识别一次(适配剿灭/活动等特殊关卡码) - if (stage_code.find('-') == std::string::npos) { + if (stage_code != invalid_stage_code && stage_code.find('-') == std::string::npos) { RegionOCRer analyzer(m_image); analyzer.set_task_info("StageDrops-StageName"); analyzer.set_use_char_model(false);