From 8fa0f78888b5e9c8b7c0d1c9e8b5be55af5e0923 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Thu, 22 Sep 2022 18:42:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=98=E6=96=97=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hunting/api_challenge.go | 2 ++ modules/mainline/api_challenge.go | 2 ++ modules/moonfantasy/api_battle.go | 1 + modules/pagoda/api_challenge.go | 2 ++ modules/viking/api_challenge.go | 2 ++ 5 files changed, 9 insertions(+) diff --git a/modules/hunting/api_challenge.go b/modules/hunting/api_challenge.go index 5301ff340..c268d23c8 100644 --- a/modules/hunting/api_challenge.go +++ b/modules/hunting/api_challenge.go @@ -51,6 +51,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.HuntingChallen code, record := this.module.battle.CreatePveBattle(session, &pb.BattlePVEReq{ Ptype: pb.PlayType_moonfantasy, + Title: "", Leadpos: req.Leadpos, Teamids: req.Teamids, Mformat: cfgData.Boss, @@ -60,6 +61,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.HuntingChallen } session.SendMsg(string(this.module.GetType()), HuntingChallengeResp, &pb.VikingChallengeResp{Info: &pb.BattleInfo{ Id: record.Id, + Title: record.Title, Btype: record.Btype, Ptype: record.Ptype, RedCompId: record.RedCompId, diff --git a/modules/mainline/api_challenge.go b/modules/mainline/api_challenge.go index f9bf1d6bc..6c925f25b 100644 --- a/modules/mainline/api_challenge.go +++ b/modules/mainline/api_challenge.go @@ -51,6 +51,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.MainlineChalle code, record := this.module.battle.CreatePveBattle(session, &pb.BattlePVEReq{ Ptype: pb.PlayType_moonfantasy, + Title: node.Title, Leadpos: req.Leadpos, Teamids: req.Teamids, Mformat: node.FormatList, @@ -60,6 +61,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.MainlineChalle } session.SendMsg(string(this.module.GetType()), MainlineChallengeResp, &pb.MainlineChallengeResp{Info: &pb.BattleInfo{ Id: record.Id, + Title: record.Title, Btype: record.Btype, Ptype: record.Ptype, RedCompId: record.RedCompId, diff --git a/modules/moonfantasy/api_battle.go b/modules/moonfantasy/api_battle.go index c9af5cf17..e2ce3f1a6 100644 --- a/modules/moonfantasy/api_battle.go +++ b/modules/moonfantasy/api_battle.go @@ -32,6 +32,7 @@ func (this *apiComp) Battle(session comm.IUserSession, req *pb.MoonfantasyBattle Monster: mdata.Monster, Info: &pb.BattleInfo{ Id: record.Id, + Title: record.Title, Btype: record.Btype, Ptype: record.Ptype, RedCompId: record.RedCompId, diff --git a/modules/pagoda/api_challenge.go b/modules/pagoda/api_challenge.go index 38d294c98..bc8003feb 100644 --- a/modules/pagoda/api_challenge.go +++ b/modules/pagoda/api_challenge.go @@ -58,6 +58,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.PagodaChalleng } code, record := this.module.battle.CreatePveBattle(session, &pb.BattlePVEReq{ Ptype: pb.PlayType_moonfantasy, + Title: "", Leadpos: req.Leadpos, Teamids: req.Teamids, Mformat: conf.MonsterId, @@ -67,6 +68,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.PagodaChalleng } session.SendMsg(string(this.module.GetType()), PagodaChallengeResp, &pb.PagodaChallengeResp{Info: &pb.BattleInfo{ Id: record.Id, + Title: record.Title, Btype: record.Btype, Ptype: record.Ptype, RedCompId: record.RedCompId, diff --git a/modules/viking/api_challenge.go b/modules/viking/api_challenge.go index 8cd3932f4..b5ae15a3a 100644 --- a/modules/viking/api_challenge.go +++ b/modules/viking/api_challenge.go @@ -51,6 +51,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.VikingChalleng code, record := this.module.battle.CreatePveBattle(session, &pb.BattlePVEReq{ Ptype: pb.PlayType_moonfantasy, + Title: "", Leadpos: req.Leadpos, Teamids: req.Teamids, Mformat: cfgData.Boss, @@ -60,6 +61,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.VikingChalleng } session.SendMsg(string(this.module.GetType()), VikingChallengeResp, &pb.VikingChallengeResp{Info: &pb.BattleInfo{ Id: record.Id, + Title: record.Title, Btype: record.Btype, Ptype: record.Ptype, RedCompId: record.RedCompId,