fix:修复已注册的卡片重复注册没有回调的错误

This commit is contained in:
liyi 2025-06-12 17:29:09 +08:00
parent d465292fd7
commit 6613ad29d1
2 changed files with 8 additions and 2 deletions

View File

@ -1033,6 +1033,7 @@ export async function parsingCharacteristicValue(binaryData) {
break;
}
} else {
emitRegisterCardConfirmEvent(new Result(Result.Fail.code, null, decrypted[2]))
this.characteristicValueCallback(new Result(decrypted[2]))
}
break;
@ -1110,6 +1111,7 @@ export async function parsingCharacteristicValue(binaryData) {
await this.disconnectDevice()
}
} else {
emitRegisterCardConfirmEvent(new Result(Result.Fail.code, null, decrypted[2]))
this.characteristicValueCallback(new Result(decrypted[2]))
}
break;
@ -1183,6 +1185,7 @@ export async function parsingCharacteristicValue(binaryData) {
// 断开蓝牙连接
await this.disconnectDevice()
} else {
emitRegisterCardConfirmEvent(new Result(Result.Fail.code, null, decrypted[2]))
this.characteristicValueCallback(new Result(decrypted[2]))
}
break;
@ -1254,6 +1257,7 @@ export async function parsingCharacteristicValue(binaryData) {
break;
}
} else {
emitRegisterCardConfirmEvent(new Result(Result.Fail.code, null, decrypted[2]))
this.characteristicValueCallback(new Result(decrypted[2]))
}
break;
@ -1323,6 +1327,7 @@ export async function parsingCharacteristicValue(binaryData) {
break;
}
} else {
emitRegisterCardConfirmEvent(new Result(Result.Fail.code, null, decrypted[2]))
this.characteristicValueCallback(new Result(decrypted[2]))
}
break;
@ -1398,6 +1403,7 @@ export async function parsingCharacteristicValue(binaryData) {
}
break;
default:
this.characteristicValueCallback(new Result(decrypted[2]))
break
}
break

4
env.js
View File

@ -1,7 +1,7 @@
// uni版本号
export const uniVersion = '1.0.16'
export const uniVersion = '1.0.17'
// uni构建号
export const uniBuildNumber = 17
export const uniBuildNumber = 18
// web版本号
export const webVersion = '1.0.1'