fix vistor access expire

This commit is contained in:
xuecong 2021-11-19 11:48:32 +08:00
parent ecd1b64de6
commit 92e5ef1e3f

View File

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