Merge remote-tracking branch 'origin/master'

Former-commit-id: 1a42880f2615021e71045f7f808cdd75c5af8f44
This commit is contained in:
tzwang 2024-05-14 10:49:41 +08:00
commit 564380be1a
1 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,10 @@ func (l *PageListTaskLogic) updateAitaskStatus(tasks []*types.TaskModel, ch chan
return return
} }
if len(aiTask) == 0 {
continue
}
start, _ := time.ParseInLocation(constants.Layout, aiTask[0].StartTime, time.Local) start, _ := time.ParseInLocation(constants.Layout, aiTask[0].StartTime, time.Local)
end, _ := time.ParseInLocation(constants.Layout, aiTask[0].EndTime, time.Local) end, _ := time.ParseInLocation(constants.Layout, aiTask[0].EndTime, time.Local)