1
0
mirror of https://github.com/chowa/ejyy.git synced 2026-01-21 05:07:48 +08:00

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