From 9c1b873a97926c06cd40580db606161bfcb183d4 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Wed, 13 Sep 2023 10:38:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BA=A2=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/reddot/api_get.go | 2 +- modules/reddot/api_getall.go | 2 +- modules/reddot/module.go | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/reddot/api_get.go b/modules/reddot/api_get.go index d511d54f9..37c3a5bbc 100644 --- a/modules/reddot/api_get.go +++ b/modules/reddot/api_get.go @@ -29,7 +29,7 @@ func (this *apiComp) Get(session comm.IUserSession, req *pb.ReddotGetReq) (errda // } //主线 case comm.Reddot24101: - for k, v := range this.module.mline.Reddot(session, _rid) { + for k, v := range this.module.mainline.Reddot(session, _rid) { reddot[int32(k)] = v } //铁匠铺 diff --git a/modules/reddot/api_getall.go b/modules/reddot/api_getall.go index 05596d0fc..c71135548 100644 --- a/modules/reddot/api_getall.go +++ b/modules/reddot/api_getall.go @@ -36,7 +36,7 @@ func (this *apiComp) GetAll(session comm.IUserSession, req *pb.ReddotGetAllReq) } //主线 - for k, v := range this.module.mline.Reddot(session, comm.Reddot24101) { + for k, v := range this.module.mainline.Reddot(session, comm.Reddot24101) { reddot[int32(k)] = v } //铁匠铺 diff --git a/modules/reddot/module.go b/modules/reddot/module.go index 0d7392025..6d229b32f 100644 --- a/modules/reddot/module.go +++ b/modules/reddot/module.go @@ -38,7 +38,7 @@ type Reddot struct { guildgve comm.IGuildgve //工会boos战 api_comp *apiComp - mline comm.IMline + mainline comm.IMainline } // 模块名 @@ -56,10 +56,10 @@ func (this *Reddot) Start() (err error) { err = this.ModuleBase.Start() var module core.IModule - if module, err = this.service.GetModule(comm.ModuleMline); err != nil { + if module, err = this.service.GetModule(comm.ModuleMainline); err != nil { return } - this.mline = module.(comm.IMline) + this.mainline = module.(comm.IMainline) if module, err = this.service.GetModule(comm.ModuleSmithy); err != nil { return }