Commit 6bec7737 authored by lilin's avatar lilin
Browse files

mobile phone need 11 number

parent 7eeeb9f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@ public class CheckUtils {
   * @return true if phone regex valid, otherwise return false
   */
  public static boolean checkPhone(String phone) {
    return StringUtils.isEmpty(phone) || phone.length() <= 11;
    return StringUtils.isEmpty(phone) || phone.length() == 11;
  }