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 }