Commit c1f49288 authored by 智勇's avatar 智勇

修改邮箱方式

parent e2b001cd
...@@ -20,7 +20,7 @@ const sendFailMail = async (data, item, executionTimeMs) => { ...@@ -20,7 +20,7 @@ const sendFailMail = async (data, item, executionTimeMs) => {
+ `分析时间 : ${executionTime}s<br/>` + `分析时间 : ${executionTime}s<br/>`
+ `扫描日期 : ${item.analysisDate}<br/>` + `扫描日期 : ${item.analysisDate}<br/>`
+ `查看详情 : ${config.sonarHost}/project/activity?id=${data.project}&&selected_date=${item.analysisDate}` + `查看详情 : ${config.sonarHost}/project/activity?id=${data.project}&&selected_date=${item.analysisDate}`
sendMail(`${data.gitUser}@quantgroup.cn`, `${data.project} ${title}`, text) sendMail(data.gitUserMail, `${data.project} ${title}`, text)
} }
const sendExceptionMail = async (data) => { const sendExceptionMail = async (data) => {
...@@ -29,7 +29,7 @@ const sendExceptionMail = async (data) => { ...@@ -29,7 +29,7 @@ const sendExceptionMail = async (data) => {
+ `项目名称 : ${data.project}<br/>` + `项目名称 : ${data.project}<br/>`
+ `分支名称 : ${data.branch}<br/>` + `分支名称 : ${data.branch}<br/>`
+ `查看详情 : ${data.absoluteUrl}console` + `查看详情 : ${data.absoluteUrl}console`
sendMail(`${data.gitUser}@quantgroup.cn`, `${data.project} ${title}`, text) sendMail(data.gitUserMail, `${data.project} ${title}`, text)
} }
const sendExistMail = async (data) => { const sendExistMail = async (data) => {
...@@ -40,7 +40,7 @@ const sendExistMail = async (data) => { ...@@ -40,7 +40,7 @@ const sendExistMail = async (data) => {
+ `GITHASH : ${data.branchHash}<br/>` + `GITHASH : ${data.branchHash}<br/>`
+ `扫描分析日期 : ${data.analysisDate}<br/>` + `扫描分析日期 : ${data.analysisDate}<br/>`
+ `查看详情 : ${config.sonarHost}/project/activity?id=${data.projectName}&&selected_date=${data.analysisDate}` + `查看详情 : ${config.sonarHost}/project/activity?id=${data.projectName}&&selected_date=${data.analysisDate}`
sendMail(`${data.gitUser}@quantgroup.cn`, `${data.project} ${title}`, text) sendMail(data.gitUserMail, `${data.project} ${title}`, text)
} }
const callback = async (ctx) => { const callback = async (ctx) => {
......
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