diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/utils/CheckUtils.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/utils/CheckUtils.java index 1e37b88478..5751204575 100644 --- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/utils/CheckUtils.java +++ b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/utils/CheckUtils.java @@ -90,11 +90,11 @@ public class CheckUtils { /** * check phone - * + * phone can be empty. * @param phone */ public static boolean checkPhone(String phone) { - return StringUtils.isNotEmpty(phone) && phone.length() > 18; + return StringUtils.isEmpty(phone) || phone.length() <= 11; }