浏览代码

更新手机号规则

sandm 2 年之前
父节点
当前提交
aa9d4ada1c
共有 1 个文件被更改,包括 1 次插入1 次删除
  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{