上传邮件红点修复
This commit is contained in:
parent
2527e10578
commit
9d5cbf0dd9
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user