fix: 租客钥匙时间不足6小时,禁止获取单次钥匙
This commit is contained in:
parent
d78bd55b2b
commit
64e75d39a6
15
starCloud.js
15
starCloud.js
@ -1986,21 +1986,6 @@ export const useStarCloudStore = defineStore('starCloud', {
|
|||||||
}
|
}
|
||||||
characteristicValueCallback(new Result(decrypted[6], { lock: this.lockInfo }))
|
characteristicValueCallback(new Result(decrypted[6], { lock: this.lockInfo }))
|
||||||
break
|
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:
|
case cmdIds.resetDevice:
|
||||||
this.updateLockInfo({
|
this.updateLockInfo({
|
||||||
token: decrypted.slice(2, 6)
|
token: decrypted.slice(2, 6)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user