上传 战报校验优化

This commit is contained in:
liwei1dao 2023-01-04 09:57:24 +08:00
parent 7e8ad9a4b7
commit ce91c0a426

View File

@ -196,6 +196,11 @@ func (this *Battle) CheckBattleReport(session comm.IUserSession, report *pb.Batt
reply *pb.BattleCheckResults reply *pb.BattleCheckResults
err error err error
) )
if report == nil {
iswin = false
return
}
if this.options.OpenCheck { if this.options.OpenCheck {
stime := time.Now() stime := time.Now()
if reply, err = this.clients.CheckBattle(context.Background(), report); err != nil || !reply.Ischeck { if reply, err = this.clients.CheckBattle(context.Background(), report); err != nil || !reply.Ischeck {