修复红点

This commit is contained in:
liwei1dao 2023-09-13 10:38:39 +08:00
parent 5e87336c24
commit 9c1b873a97
3 changed files with 5 additions and 5 deletions

View File

@ -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
}
//铁匠铺

View File

@ -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
}
//铁匠铺

View File

@ -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
}