修改一些已知BUG

优化站内发件无需第三方

修改一些已知BUG
This commit is contained in:
eoao
2026-02-07 22:41:01 +08:00
parent ccd6cb22bd
commit 6f218b5379
10 changed files with 70 additions and 20 deletions
+2 -2
View File
@@ -322,7 +322,7 @@ const emailService = {
}
//如果权限有发送次数增加用户发送次数
if (roleRow.sendCount) {
if (roleRow.sendCount && roleRow.sendType !== 'internal') {
await userService.incrUserSendCount(c, receiveEmail.length, userId);
}
@@ -473,7 +473,7 @@ const emailService = {
status = emailConst.status.BOUNCED;
}
await orm(c).update(email).set({ status: emailConst.status.DELIVERED, message: message }).where(eq(email.emailId, sendEmailData.emailId)).run();
await orm(c).update(email).set({ status, message: message }).where(eq(email.emailId, sendEmailData.emailId)).run();
},