This commit is contained in:
aozhiwei 2024-05-10 15:44:42 +08:00
parent 4e724f46e4
commit edf8db3dca
2 changed files with 2 additions and 4 deletions

View File

@ -170,7 +170,7 @@ func (this *mailMgr) CaGetAttachment(c *gin.Context) {
mails := []common.Mail{} mails := []common.Mail{}
for _, str := range(mailIds) { for _, str := range(mailIds) {
m := this.getMail(str) m := this.getMail(str)
if m != nil { if m != nil && m.IsValid(hum) {
q5.AppendSlice(&mails, m) q5.AppendSlice(&mails, m)
} }
} }

View File

@ -85,9 +85,7 @@ func (this *player) MarkMails(mails []common.Mail) error {
} }
func (this *player) GetAttachment(mails []common.Mail) error { func (this *player) GetAttachment(mails []common.Mail) error {
this.checkLock() return this.DeleteMails(mails)
var resultErr error
return resultErr
} }
func (this *player) DeleteMails(mails []common.Mail) error { func (this *player) DeleteMails(mails []common.Mail) error {