diff --git a/modules/storyline/api_complete.go b/modules/storyline/api_complete.go index 509c3452f..09a21d86f 100644 --- a/modules/storyline/api_complete.go +++ b/modules/storyline/api_complete.go @@ -146,6 +146,21 @@ func (this *apiComp) Complete(session comm.IUserSession, req *pb.StorylineComple } else if conf.Leveltype == 4 { item.Level[req.Level] = 1 item.Chapter[conf.Chapter] = configure.Now().Unix() + } else if conf.Leveltype == 5 { + if req.Report != nil { + if errdata, iswin = this.module.battle.CheckBattleReport(session, req.Report); errdata != nil { + return + } + if !iswin { + errdata = &pb.ErrorData{ + Code: pb.ErrorCode_ReqParameterError, + Title: pb.ErrorCode_ReqParameterError.ToString(), + Message: "battle no win!", + } + return + } + } + item.Level[req.Level] = 1 } else { item.Level[req.Level] = 1 }