feat: 增加模板任务逻辑

This commit is contained in:
zzyyyl
2022-10-03 22:02:23 +08:00
parent deb2213d1c
commit 47b5ecf40b
3 changed files with 136 additions and 177 deletions

View File

@@ -170,7 +170,7 @@ bool asst::TaskData::parse(const json::value& json)
#ifdef ASST_DEBUG
for (const auto& [name, task] : m_all_tasks_info) {
for (const auto& next : task->next) {
if (m_all_tasks_info.find(next) == m_all_tasks_info.cend()) {
if (get(next) == nullptr) {
Log.error(name, "'s next", next, "is null");
return false;
}