Commit 549ae367 by 赵增煜

update

parent 7cd71146
...@@ -149,7 +149,7 @@ protected function form() ...@@ -149,7 +149,7 @@ protected function form()
} }
$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 (strlen($form->id_card) != 18) { 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