上传邮件红点修复

This commit is contained in:
liwei1dao 2022-11-21 16:48:10 +08:00
parent 2527e10578
commit 9d5cbf0dd9
2 changed files with 9 additions and 9 deletions

View File

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

View File

@ -26,7 +26,7 @@ type Reddot struct {
horoscope comm.IHoroscope
arena comm.IArena
gourmet comm.IGourmet
mail comm.Imail
// 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
}