上传隐藏关卡
This commit is contained in:
parent
1d4c478bd8
commit
f3c14c4eb7
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user