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