From 8d0652643f4859153e94c0fa99c2ed034e9a9cd0 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Mon, 22 Aug 2022 16:30:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E8=AF=84=E8=AE=BA=E4=B8=8E?= =?UTF-8?q?=E6=AD=A6=E9=A6=86=E7=9A=84=E5=8D=8F=E8=AE=AE=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/forum/api_watchhero.go | 2 +- modules/martialhall/api_practice.go | 2 +- modules/martialhall/api_receive.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/forum/api_watchhero.go b/modules/forum/api_watchhero.go index 0731fb6f2..d35c0b433 100644 --- a/modules/forum/api_watchhero.go +++ b/modules/forum/api_watchhero.go @@ -27,6 +27,6 @@ func (this *apiComp) WatchHero(session comm.IUserSession, req *pb.ForumWatchHero if hero, err = this.module.modelForum.watchHero(req.Stag, req.Uid, req.HerocId); err != nil { code = pb.ErrorCode_HeroNoExist } - session.SendMsg(string(this.module.GetType()), "getlist", &pb.ForumWatchHeroResp{Hero: hero}) + session.SendMsg(string(this.module.GetType()), "watchhero", &pb.ForumWatchHeroResp{Hero: hero}) return } diff --git a/modules/martialhall/api_practice.go b/modules/martialhall/api_practice.go index 54ea05dc7..299d68197 100644 --- a/modules/martialhall/api_practice.go +++ b/modules/martialhall/api_practice.go @@ -95,6 +95,6 @@ func (this *apiComp) Practice(session comm.IUserSession, req *pb.MartialhallPrac this.module.modelMartialhall.Change(session.GetUserId(), map[string]interface{}{ filed: pillar, }) - session.SendMsg(string(this.module.GetType()), "rractice", &pb.MartialhallPracticeResp{Pillar: req.Pillar, Hero: req.Hero, Issucc: true}) + session.SendMsg(string(this.module.GetType()), "practice", &pb.MartialhallPracticeResp{Pillar: req.Pillar, Hero: req.Hero, Issucc: true}) return } diff --git a/modules/martialhall/api_receive.go b/modules/martialhall/api_receive.go index f6b4c45e2..edb8cfae6 100644 --- a/modules/martialhall/api_receive.go +++ b/modules/martialhall/api_receive.go @@ -70,6 +70,6 @@ func (this *apiComp) Receive(session comm.IUserSession, req *pb.MartialhallRecei this.module.modelMartialhall.Change(session.GetUserId(), map[string]interface{}{ filed: pillar, }) - session.SendMsg(string(this.module.GetType()), "info", &pb.MartialhallReceiveResp{}) + session.SendMsg(string(this.module.GetType()), "receive", &pb.MartialhallReceiveResp{}) return }