Commit f7b95d85 by 赵增煜

身份证号码验证

parent d3eaacd5
......@@ -169,7 +169,9 @@ protected function form()
return $form->response()->error('手机号格式错误');
}
$idValidator = new IdValidator();
if ($form->id_card && ! $idValidator->isValid($form->id_card)) {
// if ($form->id_card && ! $idValidator->isValid($form->id_card)) {
if (! empty($form->id_card) && strlen($form->id_card) != 18) {
return $form->response()->error('身份证格式错误');
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment