From fc81cc3bbdd861bfbf55a73758488dc26286a2d5 Mon Sep 17 00:00:00 2001 From: status102 <102887808+status102@users.noreply.github.com> Date: Thu, 14 May 2026 19:41:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=B4=E6=9C=9F=E7=90=86=E6=99=BA?= =?UTF-8?q?=E8=8D=AF=E5=A4=A9=E6=95=B0=E7=BC=BA=E7=9C=81=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaCore/Task/Interface/FightTask.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MaaCore/Task/Interface/FightTask.cpp b/src/MaaCore/Task/Interface/FightTask.cpp index 59a4e40716..003427a047 100644 --- a/src/MaaCore/Task/Interface/FightTask.cpp +++ b/src/MaaCore/Task/Interface/FightTask.cpp @@ -66,12 +66,12 @@ bool asst::FightTask::set_params(const json::value& params) const std::string stage = params.get("stage", ""); const int medicine = params.get("medicine", 0); - int medicine_expire_days = 2; + int medicine_expire_days = 0; if (auto expiring_day_opt = params.find("medicine_expire_days"); !expiring_day_opt) { if (auto opt = params.find("expiring_medicine"); opt) { medicine_expire_days = opt.value() == 0 ? 0 : 2; LogWarn << "================ DEPRECATED ================"; - LogWarn << __FUNCTION__ << " 'expiring_medicine' is deprecated, please use 'medicine_expire_days' instead."; + LogWarn << __FUNCTION__ << " 'expiring_medicine' is deprecated since v6.8.0, please use 'medicine_expire_days' instead."; LogWarn << "================ DEPRECATED ================"; } } @@ -79,7 +79,7 @@ bool asst::FightTask::set_params(const json::value& params) medicine_expire_days = expiring_day_opt.value(); } if (medicine_expire_days < 0) { - LogError << __FUNCTION__ << "Invalid medicine_expire_days"; + LogError << __FUNCTION__ << "Invalid medicine_expire_days," << medicine_expire_days; return false; }