fix vistor access

This commit is contained in:
xuecong 2022-01-25 09:58:19 +08:00
parent 168a2bef8b
commit 42de479b35

View File

@ -29,7 +29,7 @@ export function encrypt(
building_id: number,
type: typeof SELF_ACCESS_CODE | typeof VISTOR_ACCESS_CODE
): string {
return crypto.encrypt(`${id}#${building_id}#${type}${Date.now()}`);
return crypto.encrypt(`${id}#${building_id}#${type}#${Date.now()}`);
}
export function decrypt(uid: string): DecryptResult {