同步
This commit is contained in:
parent
68dd6cd009
commit
dd3e5244f9
@ -108,16 +108,6 @@ func (this *apiComp) ChallengeRace(session comm.IUserSession, req *pb.PagodaChal
|
||||
}
|
||||
}
|
||||
|
||||
// 校验条件
|
||||
if conf.Unlock != 1 {
|
||||
if !this.mline.CheckCommpleteStage(session.GetUserId(), conf.Unlock) {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_PagodaUnlock,
|
||||
Title: pb.ErrorCode_PagodaUnlock.ToString(),
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
errdata, record := this.module.battle.CreatePveBattle(session, &pb.BattlePVEReq{
|
||||
Ptype: pb.PlayType_pagoda,
|
||||
Title: "",
|
||||
|
@ -95,16 +95,7 @@ func (this *apiComp) ChallengeRaceOver(session comm.IUserSession, req *pb.Pagoda
|
||||
return
|
||||
}
|
||||
}
|
||||
// 校验条件
|
||||
if conf.Unlock != 1 {
|
||||
if !this.mline.CheckCommpleteStage(session.GetUserId(), conf.Unlock) {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_PagodaUnlock,
|
||||
Title: pb.ErrorCode_PagodaUnlock.ToString(),
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
// 校验通过
|
||||
errdata, isWin = this.module.battle.CheckBattleReport(session, req.Report)
|
||||
if errdata != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user