新增中英文切换
This commit is contained in:
@@ -66,8 +66,8 @@ export async function email(message, env, ctx) {
|
||||
if (banEmailType === roleConst.banEmailType.ALL) return
|
||||
|
||||
if (banEmailType === roleConst.banEmailType.CONTENT) {
|
||||
email.html = '邮件内容已被移除'
|
||||
email.text = '邮件内容已被移除'
|
||||
email.html = 'removed'
|
||||
email.text = 'removed'
|
||||
email.attachments = []
|
||||
}
|
||||
|
||||
@@ -80,8 +80,8 @@ export async function email(message, env, ctx) {
|
||||
if (banEmailType === roleConst.banEmailType.ALL) return
|
||||
|
||||
if (banEmailType === roleConst.banEmailType.CONTENT) {
|
||||
email.html = '邮件内容已被移除'
|
||||
email.text = '邮件内容已被移除'
|
||||
email.html = 'removed'
|
||||
email.text = 'removed'
|
||||
email.attachments = []
|
||||
}
|
||||
|
||||
@@ -115,11 +115,6 @@ export async function email(message, env, ctx) {
|
||||
status: emailConst.status.SAVING
|
||||
};
|
||||
|
||||
let headers = message.headers
|
||||
|
||||
console.log(headers.get('X-Cf-Spamh-Score'))
|
||||
console.log(email)
|
||||
|
||||
const attachments = [];
|
||||
const cidAttachments = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user