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 }; } }