fix access mistake

This commit is contained in:
xuecong 2021-12-02 16:34:32 +08:00
parent a0b5dae450
commit dd192b3426

View File

@ -50,7 +50,7 @@ export function decrypt(uid: string): DecryptResult {
(type !== SELF_ACCESS_CODE && type !== VISTOR_ACCESS_CODE) ||
building_id === NaN ||
id === NaN ||
/^\d{13}$/.test(stamp.toString())
!/^\d{13}$/.test(stamp.toString())
) {
success = false;
}