修复星标邮件列表不同步和图表空数据不为0

This commit is contained in:
eoao
2025-06-30 15:27:59 +08:00
parent 52e5915d93
commit 22b56781d5
10 changed files with 37 additions and 22 deletions

View File

@@ -89,7 +89,7 @@ export async function email(message, env, ctx) {
attachment.type = attachment.contentId ? attConst.type.EMBED : attConst.type.ATT;
});
if (attachments.length > 0) {
if (attachments.length > 0 && env.r2) {
await attService.addAtt({ env }, attachments);
}