修复无法接收邮件问题

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -6,8 +6,8 @@
<title></title>
<link rel="icon" href="/assets/favicon-C5dAZutX.svg" type="image/svg+xml">
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
<script type="module" crossorigin src="/assets/index-DQ5PlDSG.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-6pbK1Sk3.css">
<script type="module" crossorigin src="/assets/index-D0fGF25e.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-C-09JQBr.css">
</head>
<body>
<div id="loading-first">

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) {