战斗失败战报数据为空 由下层判断输赢
This commit is contained in:
parent
dd5879ff88
commit
09fb6e67ed
@ -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)
|
||||||
code, isWin = this.module.battle.CheckBattleReport(session, req.Report)
|
if code != pb.ErrorCode_Success {
|
||||||
if code != pb.ErrorCode_Success {
|
return
|
||||||
return
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
isWin = false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if !isWin { // 战斗失败直接返回
|
if !isWin { // 战斗失败直接返回
|
||||||
// 返还
|
// 返还
|
||||||
mainline.Ps = 0
|
mainline.Ps = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user