From ce91c0a42633773774f78ab82a96f4b16bca16f1 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Wed, 4 Jan 2023 09:57:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=20=E6=88=98=E6=8A=A5?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/battle/module.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/battle/module.go b/modules/battle/module.go index 273a8a7b8..da1c73ed6 100644 --- a/modules/battle/module.go +++ b/modules/battle/module.go @@ -196,6 +196,11 @@ func (this *Battle) CheckBattleReport(session comm.IUserSession, report *pb.Batt reply *pb.BattleCheckResults err error ) + if report == nil { + iswin = false + return + } + if this.options.OpenCheck { stime := time.Now() if reply, err = this.clients.CheckBattle(context.Background(), report); err != nil || !reply.Ischeck {