上传剧情修复

This commit is contained in:
liwei1dao 2023-08-15 10:13:06 +08:00
parent 47d09224a0
commit c84eff7063

View File

@ -71,10 +71,6 @@ func (this *apiComp) Complete(session comm.IUserSession, req *pb.StorylineComple
return
}
if item.Level[conf.Onlevel] != 0 {
isfish = true
}
//前置判断
if len(conf.Onlevelstory) == 2 && item.Level[conf.Onlevelstory[0]] == conf.Onlevelstory[1] {
errdata = &pb.ErrorData{
@ -94,6 +90,10 @@ func (this *apiComp) Complete(session comm.IUserSession, req *pb.StorylineComple
return
}
if item.Level[req.Level] != 0 {
isfish = true
}
if chapterconf, err = this.module.configure.getGameHeroupstoryChaptertxt(conf.Chapter); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ConfigNoFound,