From a2c2de497cd79c94d9e8094874950c8ccf868b50 Mon Sep 17 00:00:00 2001 From: status102 <102887808+status102@users.noreply.github.com> Date: Sat, 10 Jan 2026 17:52:19 +0800 Subject: [PATCH] =?UTF-8?q?perf(core):=20ProcessTask=20=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaCore/Common/AsstTypes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MaaCore/Common/AsstTypes.h b/src/MaaCore/Common/AsstTypes.h index 50bf4e852c..40bc2d06ac 100644 --- a/src/MaaCore/Common/AsstTypes.h +++ b/src/MaaCore/Common/AsstTypes.h @@ -287,7 +287,7 @@ struct TextRect : public AnalyzerResult std::string to_string() const override { - return std::format("{{ rect: {}, score: {}, text: {} }}", rect.to_string(), score, text); + return std::format("{{ text: {}, rect: {}, score: {:.6f} }}", text, rect.to_string(), score); } json::object to_json() const override @@ -315,7 +315,7 @@ struct MatchRect : public AnalyzerResult std::string to_string() const override { - return std::format("{{ rect: {}, score: {}, template: {} }}", rect.to_string(), score, templ_name); + return std::format("{{ template: {}, rect: {}, score: {:.6f} }}", templ_name, rect.to_string(), score); } json::object to_json() const override