fix vistor access expire
This commit is contained in:
parent
ecd1b64de6
commit
92e5ef1e3f
@ -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 };
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user