From 9d5cbf0dd93396faaaaffdef76734ad5f4ee6066 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Mon, 21 Nov 2022 16:48:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E9=82=AE=E4=BB=B6=E7=BA=A2?= =?UTF-8?q?=E7=82=B9=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/reddot/api_getall.go | 6 +++--- modules/reddot/module.go | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/reddot/api_getall.go b/modules/reddot/api_getall.go index 824e12633..7d522f985 100644 --- a/modules/reddot/api_getall.go +++ b/modules/reddot/api_getall.go @@ -42,9 +42,9 @@ func (this *apiComp) GetAll(session comm.IUserSession, req *pb.ReddotGetAllReq) for k, v := range this.module.gourmet.Reddot(session, comm.Reddot20, comm.Reddot21, comm.Reddot22) { reddot[int32(k)] = v } - for k, v := range this.module.mail.Reddot(session, comm.Reddot26) { - reddot[int32(k)] = v - } + // for k, v := range this.module.mail.Reddot(session, comm.Reddot26) { + // reddot[int32(k)] = v + // } session.SendMsg(string(this.module.GetType()), "getall", &pb.ReddotGetAllResp{Reddot: reddot}) return } diff --git a/modules/reddot/module.go b/modules/reddot/module.go index 4434a3c99..82b609e12 100644 --- a/modules/reddot/module.go +++ b/modules/reddot/module.go @@ -26,8 +26,8 @@ type Reddot struct { horoscope comm.IHoroscope arena comm.IArena gourmet comm.IGourmet - mail comm.Imail - api_comp *apiComp + // mail comm.Imail + api_comp *apiComp } //模块名 @@ -68,10 +68,10 @@ func (this *Reddot) Start() (err error) { return } this.gourmet = module.(comm.IGourmet) - if module, err = this.service.GetModule(comm.ModuleMail); err != nil { - return - } - this.mail = module.(comm.Imail) + // if module, err = this.service.GetModule(comm.ModuleMail); err != nil { + // return + // } + // this.mail = module.(comm.Imail) return }