用户手机号注册规则修改

master
chenxiaojun 5 years ago
commit 9500fbbc80

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

Loading…
Cancel
Save