mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-06 17:08:40 +08:00
防止过度校验
This commit is contained in:
parent
a31f8a056c
commit
0bf3aa562a
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user