From 0f0b24ff4132e43ef2e266bb5fad7dff4a08b6f1 Mon Sep 17 00:00:00 2001 From: alexliux <35096485+alexsixx@users.noreply.github.com> Date: Tue, 15 Oct 2019 15:52:30 +0800 Subject: [PATCH] Update task.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复只有一个id时,下次执行时间无法获取 --- controllers/task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/task.go b/controllers/task.go index 666889f..2557418 100644 --- a/controllers/task.go +++ b/controllers/task.go @@ -735,7 +735,7 @@ func (self *TaskController) Table() { TaskServerIdsArr := strings.Split(v.ServerIds, ",") serverId := 0 - if len(TaskServerIdsArr) > 1 { + if len(TaskServerIdsArr) > 0 { serverId, _ = strconv.Atoi(TaskServerIdsArr[0]) } jobskey := libs.JobKey(v.Id, serverId)