feat: 退而求其次,改用 enum_to_string()

This commit is contained in:
zzyyyl
2022-10-24 16:24:31 +08:00
parent fd4dfbf6ce
commit 633301f365
3 changed files with 34 additions and 49 deletions

View File

@@ -156,10 +156,10 @@ bool ProcessTask::_run()
info["details"] = json::object {
{ "task", cur_name },
{ "action", std::to_string(m_cur_task_ptr->action) },
{ "action", enum_to_string(m_cur_task_ptr->action) },
{ "exec_times", exec_times },
{ "max_times", max_times },
{ "algorithm", std::to_string(m_cur_task_ptr->algorithm) },
{ "algorithm", enum_to_string(m_cur_task_ptr->algorithm) },
};
callback(AsstMsg::SubTaskStart, info);