fix: 修复邮件模版不一致的问题
--bug=1009015 --user=刘瑞斌 【jenkins】邮件默认通知显示不一致 https://www.tapd.cn/55049933/s/1084854
This commit is contained in:
parent
3c4058042f
commit
ad5307defd
|
@ -116,8 +116,8 @@ public class ApiDefinitionExecResultService {
|
|||
.operator(SessionUtils.getUserId())
|
||||
.context(context)
|
||||
.subject("接口用例通知")
|
||||
.successMailTemplate("api/CaseResult")
|
||||
.failedMailTemplate("api/CaseResult")
|
||||
.successMailTemplate("api/CaseResultSuccess")
|
||||
.failedMailTemplate("api/CaseResultFailed")
|
||||
.paramMap(paramMap)
|
||||
.event(event)
|
||||
.build();
|
||||
|
|
|
@ -437,8 +437,8 @@ public class ApiScenarioReportService {
|
|||
.operator(userId)
|
||||
.context(context)
|
||||
.subject("接口自动化通知")
|
||||
.successMailTemplate("api/ScenarioResult")
|
||||
.failedMailTemplate("api/ScenarioResult")
|
||||
.successMailTemplate("api/ScenarioResultSuccess")
|
||||
.failedMailTemplate("api/ScenarioResultFailed")
|
||||
.paramMap(paramMap)
|
||||
.event(event)
|
||||
.build();
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<p>${operator}执行接口用例: ${name}, 结果: ${status}</p>
|
||||
<p>${operator}执行接口用例失败: ${name}</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -6,7 +6,7 @@
|
|||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<p>${operator}执行接口自动化: ${name}, 结果: ${status}</p>
|
||||
<p>${operator}执行接口用例成功: ${name}</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>MeterSphere</title>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<p>${operator}执行接口自动化失败: ${name}</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>MeterSphere</title>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<p>${operator}执行接口自动化成功: ${name}</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue