update checkcitizen
This commit is contained in:
parent
fec6d44fbf
commit
657285ea6f
1 changed files with 2 additions and 4 deletions
|
|
@ -5080,10 +5080,8 @@ export class ProfileController extends Controller {
|
||||||
citizenIdDigits[11] * 2;
|
citizenIdDigits[11] * 2;
|
||||||
const calStp2 = cal % 11;
|
const calStp2 = cal % 11;
|
||||||
let chkDigit = 11 - calStp2;
|
let chkDigit = 11 - calStp2;
|
||||||
if (chkDigit === 10) {
|
if (chkDigit >= 10) {
|
||||||
chkDigit = 1;
|
chkDigit = 0;
|
||||||
} else if (chkDigit === 11) {
|
|
||||||
chkDigit = chkDigit % 10;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (citizenIdDigits[12] !== chkDigit) {
|
if (citizenIdDigits[12] !== chkDigit) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue