Commit 08cbe583 by 赵增煜

身份证号码验证

parent 7db1af29
......@@ -94,7 +94,7 @@ public function update(Request $request)
// 验证身份证格式
$idValidator = new IdValidator();
// if (! $idValidator->isValid($id_card)) {
if (strlen($data['id_card']) != 18) {
if (strlen($id_card) != 18) {
return $this->failed('身份证格式错误');
}
$idCardInfo = Util::getIdCardInfo($id_card);
......
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