From 92e5ef1e3f86de7c78795a982b57203d9784524c Mon Sep 17 00:00:00 2001 From: xuecong <> Date: Fri, 19 Nov 2021 11:48:32 +0800 Subject: [PATCH] fix vistor access expire --- server/src/iot/entrance/access.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/iot/entrance/access.ts b/server/src/iot/entrance/access.ts index 305f859..db032ce 100644 --- a/server/src/iot/entrance/access.ts +++ b/server/src/iot/entrance/access.ts @@ -100,7 +100,7 @@ async function accessMethod(params: AccessParams, entranceInfo: EjyyIotEntrance, .where('id', reuslt.id) .first(); - if (!vistorInfo || vistorInfo.expire > Date.now()) { + if (!vistorInfo || vistorInfo.expire < Date.now()) { return { AcsRes: CLOSE }; } }