From 0220678a3d0b60c4187bf364d2c783d86fd97c04 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Wed, 24 May 2023 19:06:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=A5=BD=E5=8F=8B=E5=8A=A9?= =?UTF-8?q?=E6=88=98=E5=9F=8B=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 fcbd87bdc..569e377be 100644 --- a/modules/battle/module.go +++ b/modules/battle/module.go @@ -147,6 +147,9 @@ func (this *Battle) CreatePveBattle(session comm.IUserSession, req *pb.BattlePVE if record, code = this.modelBattle.createpve(session, conn, pb.BattleType_pve, req); code != pb.ErrorCode_Success { return } + if req.Format.Friendformat != nil { + go this.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype12, 1)) + } return } @@ -257,6 +260,9 @@ func (this *Battle) CreateLPVEBattle(session comm.IUserSession, req *pb.BattleLP if record, code = this.modelBattle.createlpve(session, conn, pb.BattleType_lpev, req); code != pb.ErrorCode_Success { return } + if req.Format.Friendformat != nil { + go this.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype12, 1)) + } return }