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,