上传功能开启调整
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
|
case 2: //关卡ID
|
||||||
// 查询主线进度
|
// 查询主线进度
|
||||||
if levels := this.moduleSys.mainline.InquireMainLinePassLevel(uid); len(levels) > 0 {
|
if levels := this.moduleSys.mainline.InquireMainLinePassLevel(uid); len(levels) > 0 {
|
||||||
if _, ok := levels[conf.Param]; ok {
|
if _, ok := levels[conf.Param]; !ok {
|
||||||
return condData.Id
|
|
||||||
} else {
|
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case 3: //世界任务ID
|
case 3: //世界任务ID
|
||||||
d := this.moduleSys.wtask.InquireCompletes(uid)
|
d := this.moduleSys.wtask.InquireCompletes(uid)
|
||||||
|
ok := false
|
||||||
for _, taskId := range d {
|
for _, taskId := range d {
|
||||||
if taskId == conf.Param {
|
if taskId == conf.Param {
|
||||||
return condData.Id
|
ok = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if !ok {
|
||||||
return ""
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
case 4:
|
case 4:
|
||||||
module, err := this.service.GetModule(comm.ModuleFriend)
|
module, err := this.service.GetModule(comm.ModuleFriend)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user