diff --git a/modules/reddot/api_get.go b/modules/reddot/api_get.go index 99e7c1b77..77867a99b 100644 --- a/modules/reddot/api_get.go +++ b/modules/reddot/api_get.go @@ -49,10 +49,10 @@ func (this *apiComp) Get(session comm.IUserSession, req *pb.ReddotGetReq) (code for k, v := range this.module.arena.Reddot(session, _rid) { reddot[int32(k)] = v } - case comm.Reddot23, comm.Reddot24, comm.Reddot25: - for k, v := range this.module.martialhall.Reddot(session, _rid) { - reddot[int32(k)] = v - } + // case comm.Reddot23, comm.Reddot24, comm.Reddot25: + // for k, v := range this.module.martialhall.Reddot(session, _rid) { + // reddot[int32(k)] = v + // } case comm.Reddot20, comm.Reddot21, comm.Reddot22: for k, v := range this.module.gourmet.Reddot(session, _rid) { reddot[int32(k)] = v diff --git a/modules/reddot/api_getall.go b/modules/reddot/api_getall.go index bf19a8792..384be0dc3 100644 --- a/modules/reddot/api_getall.go +++ b/modules/reddot/api_getall.go @@ -34,9 +34,9 @@ func (this *apiComp) GetAll(session comm.IUserSession, req *pb.ReddotGetAllReq) for k, v := range this.module.horoscope.Reddot(session, comm.Reddot17) { reddot[int32(k)] = v } - for k, v := range this.module.martialhall.Reddot(session, comm.Reddot23, comm.Reddot24, comm.Reddot25) { - reddot[int32(k)] = v - } + // for k, v := range this.module.martialhall.Reddot(session, comm.Reddot23, comm.Reddot24, comm.Reddot25) { + // reddot[int32(k)] = v + // } for k, v := range this.module.arena.Reddot(session, comm.Reddot19) { reddot[int32(k)] = v } diff --git a/modules/reddot/module.go b/modules/reddot/module.go index e5939c342..1c0da7f11 100644 --- a/modules/reddot/module.go +++ b/modules/reddot/module.go @@ -21,17 +21,17 @@ type Reddot struct { modules.ModuleBase service base.IRPCXService - pagoda comm.IPagoda - martialhall comm.IMartialhall - horoscope comm.IHoroscope - arena comm.IArena - gourmet comm.IGourmet - sociaty comm.ISociaty - mail comm.Imail - viking comm.IViking - hunting comm.IHunting - api_comp *apiComp - mline comm.IMline + pagoda comm.IPagoda + // martialhall comm.IMartialhall + horoscope comm.IHoroscope + arena comm.IArena + gourmet comm.IGourmet + sociaty comm.ISociaty + mail comm.Imail + viking comm.IViking + hunting comm.IHunting + api_comp *apiComp + mline comm.IMline } //模块名 @@ -56,10 +56,10 @@ func (this *Reddot) Start() (err error) { return } this.pagoda = module.(comm.IPagoda) - if module, err = this.service.GetModule(comm.ModuleMartialhall); err != nil { - return - } - this.martialhall = module.(comm.IMartialhall) + // if module, err = this.service.GetModule(comm.ModuleMartialhall); err != nil { + // return + // } + // this.martialhall = module.(comm.IMartialhall) if module, err = this.service.GetModule(comm.ModuleHoroscope); err != nil { return }