diff --git a/server/home/home-web/src/main/java/io/holoinsight/server/home/web/controller/AlertTemplateFacadeImpl.java b/server/home/home-web/src/main/java/io/holoinsight/server/home/web/controller/AlertTemplateFacadeImpl.java index 4ea6841c5..47845a889 100644 --- a/server/home/home-web/src/main/java/io/holoinsight/server/home/web/controller/AlertTemplateFacadeImpl.java +++ b/server/home/home-web/src/main/java/io/holoinsight/server/home/web/controller/AlertTemplateFacadeImpl.java @@ -48,7 +48,7 @@ /** * alert template facade - * + * * @author masaimu * @version 2023-02-21 16:43:00 */ @@ -305,12 +305,14 @@ public void doManage() { } if (StringUtils.isNotEmpty(template.text)) { + if (template.parseText()) { + result.setData(templateDTO); + } result.setSuccess(template.parseText()); } else if (!CollectionUtils.isEmpty(template.fieldMap)) { template.text = template.getTemplateJson(); result.setSuccess(true); } - result.setData(templateDTO); } });