用户手机号注册规则修改

master
chenxiaojun 5 years ago
parent df3c2d823c
commit c4f7a928f9

@ -370,7 +370,7 @@ class UserController extends BaseController
break;
}
if (!preg_match("/^1[34578]\d{9}$/", $phone)) {
if (!preg_match("/^1[345789]\d{9}$/", $phone)) {
echo json_encode(['status' => 0, 'msg' => '手机号格式不正确']);
die;
}

Loading…
Cancel
Save