From e12b37b00d954cdda5f3df25f5e7dc634c9e38c9 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Tue, 22 Nov 2022 17:48:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A9=E6=88=98=E8=8B=B1=E9=9B=84=E5=9F=8B?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/battle/module.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/battle/module.go b/modules/battle/module.go index 246c8ae60..cd2711bb3 100644 --- a/modules/battle/module.go +++ b/modules/battle/module.go @@ -118,6 +118,12 @@ func (this *Battle) CreatePveBattle(session comm.IUserSession, req *pb.BattlePVE if req.Format.Friendformat != nil && len(req.Format.Friendformat) != 5 { code = pb.ErrorCode_ReqParameterError } + for _, v := range req.Format.Friendformat { + if v != "" { + this.ModuleRtask.SendToRtask(session, comm.Rtype108, 1) + break + } + } if record, code = this.modelBattle.createpve(session, conn, pb.BattleType_pve, req); code != pb.ErrorCode_Success { return