update checkcitizen

This commit is contained in:
AdisakKanthawilang 2025-07-17 14:23:20 +07:00
parent fec6d44fbf
commit 657285ea6f

View file

@ -5080,10 +5080,8 @@ export class ProfileController 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) {