diff --git a/modules/mainline/api_challengeover.go b/modules/mainline/api_challengeover.go index 97062a0c3..e60614325 100644 --- a/modules/mainline/api_challengeover.go +++ b/modules/mainline/api_challengeover.go @@ -56,14 +56,11 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.MainlineCh } // 校验通过 - if req.Report != nil { // 战斗失败 - code, isWin = this.module.battle.CheckBattleReport(session, req.Report) - if code != pb.ErrorCode_Success { - return - } - } else { - isWin = false + code, isWin = this.module.battle.CheckBattleReport(session, req.Report) + if code != pb.ErrorCode_Success { + return } + if !isWin { // 战斗失败直接返回 // 返还 mainline.Ps = 0