Commit 6ca81328 by trace

fix: chaolun email invalid

parent 830b2e66
...@@ -183,7 +183,7 @@ async function startMonitor() { ...@@ -183,7 +183,7 @@ async function startMonitor() {
sendEmail(content, developer) sendEmail(content, developer)
dingDing(content) dingDing(content)
if (err.toString().includes('ENOSPC')) { if (err.toString().includes('ENOSPC')) {
sendEmail(`小老弟, 这个爬虫呆着的机器没空间了, ${err.toString()}`, 'chaolun.ni@starwin.com') sendEmail(`小老弟, 这个爬虫呆着的机器没空间了, ${err.toString()}`, 'yingchen.nong@starwin.com')
} }
// 出错了需要重新抓, 需要清空之前缓存的状态 // 出错了需要重新抓, 需要清空之前缓存的状态
...@@ -750,7 +750,7 @@ function sendEmail(content, to = notifyEmail) { ...@@ -750,7 +750,7 @@ function sendEmail(content, to = notifyEmail) {
// // to = [...to, 添加只对自己app监控的人] // // to = [...to, 添加只对自己app监控的人]
// } // }
let myEmail = 'chaolun.ni@starwin.com' let myEmail = 'yingchen.nong@starwin.com'
let emailTo = to.join(', ') let emailTo = to.join(', ')
let trans = nodemailer.createTransport({ let trans = nodemailer.createTransport({
host: 'smtp.exmail.qq.com', host: 'smtp.exmail.qq.com',
...@@ -758,7 +758,7 @@ function sendEmail(content, to = notifyEmail) { ...@@ -758,7 +758,7 @@ function sendEmail(content, to = notifyEmail) {
secure: false, secure: false,
auth: { auth: {
user: myEmail, user: myEmail,
pass: '3JkTpbNQ3DeNRJbu' pass: 'rwGxHWrxYKJJ2xnu'
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment