改为处理最后一个,修改api

This commit is contained in:
xiongyi
2026-01-28 14:54:41 +08:00
parent 63369d7e9f
commit 98b049bda3

View File

@ -38,9 +38,10 @@ class TaskService:
# 处理当前任务 # 处理当前任务
current_task = self._process_current_task(artifact_list[-1]) current_task = self._process_current_task(artifact_list[-1])
# 如果获取任务信息失败,则返回空结果 # 如果获取任务信息失败,则返回空结果
if current_task is None: if current_task is None or not current_task.get("artifact_id"):
return [], [], [], self.half_volume return [], [], [], self.half_volume
# 根据F块情况处理任务 # 根据F块情况处理任务