邮件红点默认值

This commit is contained in:
meixiongfeng 2022-12-15 14:34:24 +08:00
parent d1a176cfcf
commit 26262164cd
2 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ func (this *modelMail) checkReddot26(uid string) bool {
func (this *modelMail) checkReddot30(uid string) bool { func (this *modelMail) checkReddot30(uid string) bool {
mailinfo, err := this.MailQueryUserMail(uid) mailinfo, err := this.MailQueryUserMail(uid)
if err != nil { if err != nil {
return false return true
} }
for _, v := range mailinfo { for _, v := range mailinfo {
if !v.Check { if !v.Check {

View File

@ -146,7 +146,7 @@ func (this *Mail) Reddot(session comm.IUserSession, rid ...comm.ReddotType) (red
} }
break break
case comm.Reddot30: case comm.Reddot30:
if isredot := this.modelMail.checkReddot30(session.GetUserId()); isredot { if isredot := this.modelMail.checkReddot30(session.GetUserId()); !isredot {
reddot[comm.Reddot30] = true reddot[comm.Reddot30] = true
} }
break break