修改模板替换。

This commit is contained in:
haown 2024-07-04 16:20:11 +08:00
parent 5cc50e6d48
commit a3dd0a9804

View File

@ -789,6 +789,9 @@ public class SignPatientManageRouteServiceImpl implements ISignPatientManageRout
return null;
}
String templateContent = wechatTemplate.getTemplateContent();
if (StringUtils.isEmpty(templateContent)) {
return null;
}
Pattern pattern = Pattern.compile("#\\{([^\\}]*)\\}");
Matcher matcher = pattern.matcher(templateContent);
while (matcher.find()) {