diff --git a/modules/sys/model_sys.go b/modules/sys/model_sys.go index aa41e0792..5e1ee6670 100644 --- a/modules/sys/model_sys.go +++ b/modules/sys/model_sys.go @@ -42,20 +42,22 @@ func (this *ModelSys) validCond(uid string, condData *cfg.GameOpencondData) stri case 2: //关卡ID // 查询主线进度 if levels := this.moduleSys.mainline.InquireMainLinePassLevel(uid); len(levels) > 0 { - if _, ok := levels[conf.Param]; ok { - return condData.Id - } else { + if _, ok := levels[conf.Param]; !ok { return "" } } case 3: //世界任务ID d := this.moduleSys.wtask.InquireCompletes(uid) + ok := false for _, taskId := range d { if taskId == conf.Param { - return condData.Id + ok = true } } - return "" + if !ok { + return "" + } + case 4: module, err := this.service.GetModule(comm.ModuleFriend) if err != nil {