Skip to content

Commit 416eb13

Browse files
author
Jerry Lan
committed
fix check时没有校验最后一位
1 parent 2d8f6bb commit 416eb13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Idcard.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function getId(){
128128
* @return bool
129129
*/
130130
public function check(){
131-
return $this->isValid || ($this->checkFormat() && $this->checkArea() && $this->checkBirthday() && $this->setValid(true));
131+
return $this->isValid || ($this->checkFormat() && $this->checkCode() && $this->checkArea() && $this->checkBirthday() && $this->setValid(true));
132132
}
133133

134134
/**

0 commit comments

Comments
 (0)