From 42de479b358e8b9249abb2530511948723a670d6 Mon Sep 17 00:00:00 2001 From: xuecong Date: Tue, 25 Jan 2022 09:58:19 +0800 Subject: [PATCH] fix vistor access --- server/src/utils/access.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/utils/access.ts b/server/src/utils/access.ts index 0b2edd2..0baa4a0 100644 --- a/server/src/utils/access.ts +++ b/server/src/utils/access.ts @@ -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 {