防止过度校验

This commit is contained in:
wind 2024-03-22 15:22:37 +08:00
parent a31f8a056c
commit 0bf3aa562a

View File

@ -78,7 +78,7 @@ public class CoreMethodParamValidateProcessor implements CoreMethodProcessor {
} }
public void validateMessages(String templateId, LinkedHashMap<String, String> messages) { public void validateMessages(String templateId, LinkedHashMap<String, String> messages) {
if (StrUtil.isEmpty(templateId) && messages == null) { if (StrUtil.isEmpty(templateId)) {
throw new SmsBlendException("cant use template without template param"); throw new SmsBlendException("cant use template without template param");
} }
} }