From 26262164cd4a404ea066f3375e084a8d3bc75975 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Thu, 15 Dec 2022 14:34:24 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=AE=E4=BB=B6=E7=BA=A2=E7=82=B9=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/mail/model_mail.go | 2 +- modules/mail/module.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mail/model_mail.go b/modules/mail/model_mail.go index 7c6849945..a982d17f8 100644 --- a/modules/mail/model_mail.go +++ b/modules/mail/model_mail.go @@ -149,7 +149,7 @@ func (this *modelMail) checkReddot26(uid string) bool { func (this *modelMail) checkReddot30(uid string) bool { mailinfo, err := this.MailQueryUserMail(uid) if err != nil { - return false + return true } for _, v := range mailinfo { if !v.Check { diff --git a/modules/mail/module.go b/modules/mail/module.go index 090ed884d..6d46bee2b 100644 --- a/modules/mail/module.go +++ b/modules/mail/module.go @@ -146,7 +146,7 @@ func (this *Mail) Reddot(session comm.IUserSession, rid ...comm.ReddotType) (red } break case comm.Reddot30: - if isredot := this.modelMail.checkReddot30(session.GetUserId()); isredot { + if isredot := this.modelMail.checkReddot30(session.GetUserId()); !isredot { reddot[comm.Reddot30] = true } break