fix(消息通知): 修复接口自动化执行后通知状态错误的问题
--bug=1018800 --user=刘瑞斌 【项目设置】场景执行成功,消息通知却是执行失败事件。 https://www.tapd.cn/55049933/s/1276179
This commit is contained in:
parent
26d6acc32e
commit
b34967da94
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue