From d28ba5892086a73b45888c63656d7763b4bbfefe Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Mon, 27 Mar 2023 20:29:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BE=E9=81=A3=E4=BB=BB=E5=8A=A1=E9=9A=8F?= =?UTF-8?q?=E6=9C=BA=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/dispatch/model_dispatch.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/dispatch/model_dispatch.go b/modules/dispatch/model_dispatch.go index 8ccbeead2..25c061eb7 100644 --- a/modules/dispatch/model_dispatch.go +++ b/modules/dispatch/model_dispatch.go @@ -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 }