修复自动刷新问题

This commit is contained in:
eoao
2025-06-03 13:29:52 +08:00
parent 9b8598da57
commit 3190b47bb9
11 changed files with 45 additions and 38 deletions

View File

@@ -5,6 +5,7 @@ import settingService from '../service/setting-service';
import attService from '../service/att-service';
import constant from '../const/constant';
import fileUtils from '../utils/file-utils';
import { emailConst, isDel } from '../const/entity-const';
export async function email(message, env, ctx) {
@@ -35,7 +36,9 @@ export async function email(message, env, ctx) {
content: email.html,
text: email.text,
userId: account.userId,
accountId: account.accountId
accountId: account.accountId,
isDel: isDel.DELETE,
status: emailConst.status.SAVING
};
const attachments = [];
@@ -60,6 +63,7 @@ export async function email(message, env, ctx) {
})
await attService.addAtt({ env }, attachments);
await emailService.completeReceive({ env }, emailRow.emailId);
} catch (e) {
console.error('邮件接收异常: ', e);