派遣任务随机刷新

This commit is contained in:
wh_zcy 2023-03-27 20:29:14 +08:00
parent 0421c9f00e
commit d28ba58920

View File

@ -175,7 +175,7 @@ func (this *modelDispatch) taskRandom(uid string, dispatch *pb.DBDispatch) (task
}
}
//追加随机
tasks = this.addRandomTask(uid, dispatch, randCount)
tasks = append(tasks, this.addRandomTask(uid, dispatch, randCount)...)
}
return
@ -234,7 +234,7 @@ func (this *modelDispatch) replaceTask(uid string, taskId int32, dispatch *pb.DB
}
}
tasks = this.addRandomTask(uid, dispatch, randCount)
tasks = append(tasks, this.addRandomTask(uid, dispatch, randCount)...)
return
}
@ -256,7 +256,7 @@ func (this *modelDispatch) replaceFinishedTask(uid string, dispatch *pb.DBDispat
}
}
tasks = this.addRandomTask(uid, dispatch, randCount)
tasks = append(tasks, this.addRandomTask(uid, dispatch, randCount)...)
return
}