Browse Source

更新手机号规则

sandm 2 years ago
parent
commit
aa9d4ada1c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/common/Fun.php

+ 1 - 1
app/common/Fun.php

@@ -70,7 +70,7 @@ class Fun
      * 是否手机号
      */
     public static function isMobile($user_mobile){
-        $chars = "/^((\(\d{2,3}\))|(\d{3}\-))?1(3|5|8|9)\d{9}$/";
+        $chars = "/^((\(\d{2,3}\))|(\d{3}\-))?1(3|4|5|6|7|8|9)\d{9}$/";
         if (preg_match($chars, $user_mobile)){
             return true;
         }else{