派遣任务随机刷新
This commit is contained in:
parent
0421c9f00e
commit
d28ba58920
@ -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
|
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
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user