修正人脸认证的判断时间

This commit is contained in:
范鹏 2024-09-12 14:16:22 +08:00
parent 46f537842f
commit 373cbdbb35

View File

@ -138,7 +138,8 @@ export default {
},
async openDoorOperate(type) {
if(this.currentLockInfo.faceAuthentication === 1 &&
this.currentLockInfo.nextFaceValidateTime <= new Date().getTime() + this.time * 1000) {
((this.currentLockInfo.nextFaceValidateTime <= new Date().getTime() + this.time * 1000) &&
this.currentLockInfo.nextFaceValidateTime !== 0)) {
uni.showModal({
title: '提示',
content: '开门前需进行实名认证小程序暂不支持请使用APP认证开门',