fix:修复已注册的卡片重复注册没有回调的错误
This commit is contained in:
parent
d465292fd7
commit
6613ad29d1
@ -1033,6 +1033,7 @@ export async function parsingCharacteristicValue(binaryData) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
emitRegisterCardConfirmEvent(new Result(Result.Fail.code, null, decrypted[2]))
|
||||||
this.characteristicValueCallback(new Result(decrypted[2]))
|
this.characteristicValueCallback(new Result(decrypted[2]))
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -1110,6 +1111,7 @@ export async function parsingCharacteristicValue(binaryData) {
|
|||||||
await this.disconnectDevice()
|
await this.disconnectDevice()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
emitRegisterCardConfirmEvent(new Result(Result.Fail.code, null, decrypted[2]))
|
||||||
this.characteristicValueCallback(new Result(decrypted[2]))
|
this.characteristicValueCallback(new Result(decrypted[2]))
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -1183,6 +1185,7 @@ export async function parsingCharacteristicValue(binaryData) {
|
|||||||
// 断开蓝牙连接
|
// 断开蓝牙连接
|
||||||
await this.disconnectDevice()
|
await this.disconnectDevice()
|
||||||
} else {
|
} else {
|
||||||
|
emitRegisterCardConfirmEvent(new Result(Result.Fail.code, null, decrypted[2]))
|
||||||
this.characteristicValueCallback(new Result(decrypted[2]))
|
this.characteristicValueCallback(new Result(decrypted[2]))
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -1254,6 +1257,7 @@ export async function parsingCharacteristicValue(binaryData) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
emitRegisterCardConfirmEvent(new Result(Result.Fail.code, null, decrypted[2]))
|
||||||
this.characteristicValueCallback(new Result(decrypted[2]))
|
this.characteristicValueCallback(new Result(decrypted[2]))
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -1323,6 +1327,7 @@ export async function parsingCharacteristicValue(binaryData) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
emitRegisterCardConfirmEvent(new Result(Result.Fail.code, null, decrypted[2]))
|
||||||
this.characteristicValueCallback(new Result(decrypted[2]))
|
this.characteristicValueCallback(new Result(decrypted[2]))
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -1398,6 +1403,7 @@ export async function parsingCharacteristicValue(binaryData) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
this.characteristicValueCallback(new Result(decrypted[2]))
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user