修复用户过多,清理用户时的bug
This commit is contained in:
parent
151328fd33
commit
8c028e0905
@ -297,9 +297,14 @@ export const useBluetoothStore = defineStore('ble', {
|
|||||||
case cmdIds.addUser:
|
case cmdIds.addUser:
|
||||||
that.updateCurrentLockInfo({
|
that.updateCurrentLockInfo({
|
||||||
...that.currentLockInfo,
|
...that.currentLockInfo,
|
||||||
token: decrypted.slice(42,46),
|
token: decrypted.slice(42,46)
|
||||||
lockUserNo: decrypted[47] * 256 + decrypted[48]
|
|
||||||
})
|
})
|
||||||
|
if(decrypted[46] === 0) {
|
||||||
|
that.updateCurrentLockInfo({
|
||||||
|
...that.currentLockInfo,
|
||||||
|
lockUserNo: decrypted[47] * 256 + decrypted[48]
|
||||||
|
})
|
||||||
|
}
|
||||||
console.log('添加用户结果', decrypted[46], that.currentLockInfo.token)
|
console.log('添加用户结果', decrypted[46], that.currentLockInfo.token)
|
||||||
characteristicValueCallback({
|
characteristicValueCallback({
|
||||||
code: decrypted[46]
|
code: decrypted[46]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user