diff --git a/modules/pagoda/api_racechallenge.go b/modules/pagoda/api_racechallenge.go index 50b5e8903..6af839c95 100644 --- a/modules/pagoda/api_racechallenge.go +++ b/modules/pagoda/api_racechallenge.go @@ -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: "", diff --git a/modules/pagoda/api_racechallengeover.go b/modules/pagoda/api_racechallengeover.go index 92cc8aff7..27213f46b 100644 --- a/modules/pagoda/api_racechallengeover.go +++ b/modules/pagoda/api_racechallengeover.go @@ -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 {