mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 10:32:19 +08:00
fix.修复回调消息的一些错误
This commit is contained in:
@@ -171,6 +171,9 @@ bool ProcessTask::_run()
|
||||
--m_exec_times[reduce];
|
||||
}
|
||||
|
||||
info["details"]["exec_times"] = exec_times;
|
||||
m_callback(AsstMsg::SubTaskCompleted, info, m_callback_arg);
|
||||
|
||||
// 后置固定延时
|
||||
int rear_delay = m_cur_task_ptr->rear_delay;
|
||||
if (auto iter = m_rear_delay.find(cur_name);
|
||||
@@ -181,9 +184,6 @@ bool ProcessTask::_run()
|
||||
return false;
|
||||
}
|
||||
|
||||
info["exec_times"] = exec_times;
|
||||
m_callback(AsstMsg::SubTaskCompleted, info.to_string(), m_callback_arg);
|
||||
|
||||
if (need_stop) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user