fix: 租客钥匙时间不足6小时,禁止获取单次钥匙

This commit is contained in:
范鹏 2024-12-12 09:15:54 +08:00
parent d78bd55b2b
commit 64e75d39a6

View File

@ -1986,21 +1986,6 @@ export const useStarCloudStore = defineStore('starCloud', {
}
characteristicValueCallback(new Result(decrypted[6], { lock: this.lockInfo }))
break
case cmdIds.resetDevice:
this.updateLockInfo({
token: decrypted.slice(2, 6),
electricQuantity: decrypted[7],
electricQuantityStandby: decrypted[9]
})
if (decrypted[6] === Result.Success.code) {
updateElectricQuantityRequest({
lockId: this.lockInfo.lockId,
electricQuantity: decrypted[7],
electricQuantityStandby: decrypted[9]
})
}
characteristicValueCallback(new Result(decrypted[6], { lock: this.lockInfo }))
break
case cmdIds.resetDevice:
this.updateLockInfo({
token: decrypted.slice(2, 6)