From 434e4e657dfa5a750b8434aa92482ad41eeeb6d0 Mon Sep 17 00:00:00 2001 From: MistEO Date: Thu, 19 May 2022 11:23:13 +0800 Subject: [PATCH] =?UTF-8?q?fix.=E4=B8=B4=E6=97=B6=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=85=B3=E5=8D=A1=E5=90=8D=E8=AF=86=E5=88=AB=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E5=B4=A9=E6=BA=83=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MeoAssistant/StageDropsTaskPlugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MeoAssistant/StageDropsTaskPlugin.cpp b/src/MeoAssistant/StageDropsTaskPlugin.cpp index 1e7b9bff81..0d393f0687 100644 --- a/src/MeoAssistant/StageDropsTaskPlugin.cpp +++ b/src/MeoAssistant/StageDropsTaskPlugin.cpp @@ -153,7 +153,9 @@ void asst::StageDropsTaskPlugin::drop_info_callback() details["drops"] = json::array(std::move(drops_vec)); json::value& stage = details["stage"]; stage["stageCode"] = m_stage_code; - stage["stageId"] = Resrc.drops().get_stage_info(m_stage_code, m_stage_difficulty).stage_id; + if (!m_stage_code.empty()) { + stage["stageId"] = Resrc.drops().get_stage_info(m_stage_code, m_stage_difficulty).stage_id; + } callback(AsstMsg::SubTaskExtraInfo, info); m_cur_info_json = std::move(details);