fix(消息通知): 修复接口自动化执行后通知状态错误的问题

--bug=1018800 --user=刘瑞斌 【项目设置】场景执行成功,消息通知却是执行失败事件。 https://www.tapd.cn/55049933/s/1276179
This commit is contained in:
CaptainB 2022-10-25 14:16:05 +08:00 committed by 刘瑞斌
parent 26d6acc32e
commit b34967da94
1 changed files with 1 additions and 1 deletions

View File

@ -491,7 +491,7 @@ public class ApiScenarioReportService {
String event;
String status;
if (StringUtils.equals(scenario.getLastResult(), ApiReportStatus.SUCCESS.name())) {
if (StringUtils.endsWithIgnoreCase(scenario.getLastResult(), ApiReportStatus.SUCCESS.name())) {
event = NoticeConstants.Event.EXECUTE_SUCCESSFUL;
status = "成功";
} else {