上传周长任务限制
This commit is contained in:
parent
0012758f06
commit
59cbc7eb8b
@ -219,7 +219,7 @@ func (this *ModelTask) getTaskById(uid string, taskTag comm.TaskTag, taskId int3
|
|||||||
func (this *ModelTask) initTask(opencond map[string]int32, task *pb.DBTask, taskTag comm.TaskTag) error {
|
func (this *ModelTask) initTask(opencond map[string]int32, task *pb.DBTask, taskTag comm.TaskTag) error {
|
||||||
data := this.module.configure.getTaskByTag(int32(taskTag))
|
data := this.module.configure.getTaskByTag(int32(taskTag))
|
||||||
for _, cnf := range data {
|
for _, cnf := range data {
|
||||||
if unlock, ok := opencond[cnf.Open]; !ok || unlock != 2 {
|
if unlock, ok := opencond[cnf.Open]; cnf.Open != "" && (!ok || unlock != 2) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user