mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-06 08:58:38 +08:00
Fixed:修复了手机号空值校验逻辑错误的问题。
This commit is contained in:
parent
5a1641aed0
commit
e7991ddba4
@ -60,7 +60,7 @@ public class CoreMethodParamValidateProcessor implements CoreMethodProcessor {
|
||||
}
|
||||
|
||||
public void validatePhone(String phone) {
|
||||
if (StrUtil.isNotEmpty(phone)) {
|
||||
if (StrUtil.isBlank(phone)) {
|
||||
throw new SmsBlendException("cant send message to null!");
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user