Commit 778e3a2c by 赵增煜

id_card长度

parent 076e42d0
...@@ -109,7 +109,8 @@ protected function form() ...@@ -109,7 +109,8 @@ protected function form()
return $form->response()->error('手机号格式错误'); return $form->response()->error('手机号格式错误');
} }
$idValidator = new IdValidator(); $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('身份证格式错误'); 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