update check citizen2
This commit is contained in:
parent
657285ea6f
commit
9ea012f4d2
3 changed files with 14 additions and 28 deletions
|
|
@ -1859,10 +1859,8 @@ export class ProfileEmployeeController extends Controller {
|
|||
citizenIdDigits[11] * 2;
|
||||
const calStp2 = cal % 11;
|
||||
let chkDigit = 11 - calStp2;
|
||||
if (chkDigit === 10) {
|
||||
chkDigit = 1;
|
||||
} else if (chkDigit === 11) {
|
||||
chkDigit = chkDigit % 10;
|
||||
if (chkDigit >= 10) {
|
||||
chkDigit = 0;
|
||||
}
|
||||
|
||||
if (citizenIdDigits[12] !== chkDigit) {
|
||||
|
|
@ -1953,10 +1951,8 @@ export class ProfileEmployeeController extends Controller {
|
|||
citizenIdDigits[11] * 2;
|
||||
const calStp2 = cal % 11;
|
||||
let chkDigit = 11 - calStp2;
|
||||
if (chkDigit === 10) {
|
||||
chkDigit = 1;
|
||||
} else if (chkDigit === 11) {
|
||||
chkDigit = chkDigit % 10;
|
||||
if (chkDigit >= 10) {
|
||||
chkDigit = 0;
|
||||
}
|
||||
|
||||
if (citizenIdDigits[12] !== chkDigit) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue