This commit is contained in:
Adisak 2025-11-26 09:42:43 +07:00
parent 8f6637a656
commit 4f30ea9c6b
3 changed files with 8 additions and 32 deletions

View file

@ -275,10 +275,7 @@ class Extension {
citizenIdDigits[10] * 3 +
citizenIdDigits[11] * 2;
const calStp2 = cal % 11;
let chkDigit = 11 - calStp2;
if (chkDigit >= 10) {
chkDigit = 0;
}
const chkDigit = (11 - calStp2) % 10;
// if (citizenIdDigits[12] !== chkDigit) {
// throw new HttpError(HttpStatus.NOT_FOUND, "ข้อมูลรหัสบัตรประจำตัวประชาชนไม่ถูกต้อง");