上传功能开启调整
This commit is contained in:
parent
ef2d617760
commit
b6120c49f5
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user