From 3673328730251736f9614793d9a75630c17b28f6 Mon Sep 17 00:00:00 2001 From: zuoxiao <470321431@qq.com> Date: 星期二, 13 八月 2024 09:10:27 +0800 Subject: [PATCH] 修改未关泵补卡逻辑 --- qihealonelibrary/src/main/java/com/dayu/qihealonelibrary/tools/NfcReadHelper.java | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/qihealonelibrary/src/main/java/com/dayu/qihealonelibrary/tools/NfcReadHelper.java b/qihealonelibrary/src/main/java/com/dayu/qihealonelibrary/tools/NfcReadHelper.java index dff0d49..aecd0a4 100644 --- a/qihealonelibrary/src/main/java/com/dayu/qihealonelibrary/tools/NfcReadHelper.java +++ b/qihealonelibrary/src/main/java/com/dayu/qihealonelibrary/tools/NfcReadHelper.java @@ -135,8 +135,10 @@ byte[] data = mfc.readBlock(bIndex + 0); if (data != null && data.length > 0) { String hex = HexUtil.bytesToHex(Arrays.copyOfRange(data, 0, 4)); +// hex = HexUtil.spaceHex(hex); +// hex = HexUtil.HighLowHex(hex); Log.i("NFCWreatActivity", "hex===" + hex); - return hex; + return hex.toUpperCase(); } } @@ -193,7 +195,7 @@ String hex = HexUtil.byteToHex(data[0]); strData.append(hex); Log.i("NFCWreatActivity", "hex===" + hex); - return strData.toString(); + return strData.toString().toUpperCase(); } } else { Log.i("NFCWreatActivity", "isOpen===" + isOpen); -- Gitblit v1.8.0