Update task.go
修复只有一个id时,下次执行时间无法获取
This commit is contained in:
@@ -735,7 +735,7 @@ func (self *TaskController) Table() {
|
|||||||
|
|
||||||
TaskServerIdsArr := strings.Split(v.ServerIds, ",")
|
TaskServerIdsArr := strings.Split(v.ServerIds, ",")
|
||||||
serverId := 0
|
serverId := 0
|
||||||
if len(TaskServerIdsArr) > 1 {
|
if len(TaskServerIdsArr) > 0 {
|
||||||
serverId, _ = strconv.Atoi(TaskServerIdsArr[0])
|
serverId, _ = strconv.Atoi(TaskServerIdsArr[0])
|
||||||
}
|
}
|
||||||
jobskey := libs.JobKey(v.Id, serverId)
|
jobskey := libs.JobKey(v.Id, serverId)
|
||||||
|
|||||||
Reference in New Issue
Block a user