修复无法接收邮件问题

This commit is contained in:
eoao
2025-06-04 22:12:54 +08:00
parent dac0383bab
commit 0692f8ec5e
4 changed files with 11 additions and 8 deletions

View File

@@ -62,7 +62,10 @@ export async function email(message, env, ctx) {
attachment.accountId = emailRow.accountId;
})
await attService.addAtt({ env }, attachments);
if (attachments.length > 0) {
await attService.addAtt({ env }, attachments);
}
await emailService.completeReceive({ env }, emailRow.emailId);
} catch (e) {