From 279cd90f637403473a79bd7552211085d9033c3d Mon Sep 17 00:00:00 2001 From: chaos-zhu Date: Sat, 17 Aug 2024 01:11:06 +0800 Subject: [PATCH] =?UTF-8?q?:new:=20=E9=87=8D=E6=9E=84=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E6=96=B9=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/app/controller/notify.js | 3 +-- server/app/utils/email.js | 2 +- server/app/utils/{test-notify.js => notify.js} | 0 3 files changed, 2 insertions(+), 3 deletions(-) rename server/app/utils/{test-notify.js => notify.js} (100%) diff --git a/server/app/controller/notify.js b/server/app/controller/notify.js index b24f8e0..d1ac504 100644 --- a/server/app/controller/notify.js +++ b/server/app/controller/notify.js @@ -1,5 +1,5 @@ const { readNotifyConfig, writeNotifyConfig, readNotifyList, writeNotifyList } = require('../utils') -const { sctTest, emailTest } = require('../utils/test-notify') +const { sctTest, emailTest } = require('../utils/notify') // const commonTemp = require('../template/commonTemp') async function getNotifyConfig({ res }) { @@ -7,7 +7,6 @@ async function getNotifyConfig({ res }) { return res.success({ data }) } -// 根据type待编写测试方法,测试通过才保存到库 async function updateNotifyConfig({ res, request }) { let { body: { noticeConfig } } = request let { type } = noticeConfig diff --git a/server/app/utils/email.js b/server/app/utils/email.js index c0a13db..577962b 100644 --- a/server/app/utils/email.js +++ b/server/app/utils/email.js @@ -1,6 +1,6 @@ // :TODO: 重写 const nodemailer = require('nodemailer') -const { readSupportEmailList, readUserEmailList } = require('./storage') +const { readNotifyConfig, readNotifyList } = require('./storage') const commonTemp = require('../template/commonTemp') const emailCode = { diff --git a/server/app/utils/test-notify.js b/server/app/utils/notify.js similarity index 100% rename from server/app/utils/test-notify.js rename to server/app/utils/notify.js