上传邮件红点修复
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) {
|
for k, v := range this.module.gourmet.Reddot(session, comm.Reddot20, comm.Reddot21, comm.Reddot22) {
|
||||||
reddot[int32(k)] = v
|
reddot[int32(k)] = v
|
||||||
}
|
}
|
||||||
for k, v := range this.module.mail.Reddot(session, comm.Reddot26) {
|
// for k, v := range this.module.mail.Reddot(session, comm.Reddot26) {
|
||||||
reddot[int32(k)] = v
|
// reddot[int32(k)] = v
|
||||||
}
|
// }
|
||||||
session.SendMsg(string(this.module.GetType()), "getall", &pb.ReddotGetAllResp{Reddot: reddot})
|
session.SendMsg(string(this.module.GetType()), "getall", &pb.ReddotGetAllResp{Reddot: reddot})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ type Reddot struct {
|
|||||||
horoscope comm.IHoroscope
|
horoscope comm.IHoroscope
|
||||||
arena comm.IArena
|
arena comm.IArena
|
||||||
gourmet comm.IGourmet
|
gourmet comm.IGourmet
|
||||||
mail comm.Imail
|
// mail comm.Imail
|
||||||
api_comp *apiComp
|
api_comp *apiComp
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -68,10 +68,10 @@ func (this *Reddot) Start() (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.gourmet = module.(comm.IGourmet)
|
this.gourmet = module.(comm.IGourmet)
|
||||||
if module, err = this.service.GetModule(comm.ModuleMail); err != nil {
|
// if module, err = this.service.GetModule(comm.ModuleMail); err != nil {
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
this.mail = module.(comm.Imail)
|
// this.mail = module.(comm.Imail)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user