This commit is contained in:
aozhiwei 2024-06-05 17:55:13 +08:00
parent 51da25eece
commit a8800ae9b0

View File

@ -123,10 +123,9 @@ func (this *player) GetAttachment(mails []common.Mail, c *gin.Context) {
if rsp.GetErr() != nil{
return
}
if errCode, err := q5.ToInt64Ex(rspObj.ErrCode); err != nil || errCode != 0 {
return
if errCode, err := q5.ToInt64Ex(rspObj.ErrCode); err == nil && errCode == 0 {
this.DeleteMails(mails)
}
this.DeleteMails(mails)
c.String(200, rsp.GetRawData())
})
}