修复无法接收邮件问题
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
mail-worker/dist/index.html
vendored
4
mail-worker/dist/index.html
vendored
@@ -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">
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user