From 55b196ea2e28a8d859c85326f2147a4f7b7196de Mon Sep 17 00:00:00 2001 From: zuojincheng <lf_zuo@163.com> Date: 星期四, 10 四月 2025 10:58:32 +0800 Subject: [PATCH] feat(general): 新增开卡信息保存功能并优化界面布局- 新增 CardRegistrationBean 数据模型用于保存开卡信息 - 在数据库中添加 card_registration 表用于存储开卡记录 - 优化 NewCard2Activity 界面布局,调整样式和间距 - 添加协程支持,实现异步保存开卡信息到数据库 - 更新颜色配置,统一使用新加的 base_blue_bg 和 base_green_bg颜色 --- baselibrary/src/main/java/com/dayu/baselibrary/tools/nfc/NativeNfcReadHelper.java | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/baselibrary/src/main/java/com/dayu/baselibrary/tools/nfc/NativeNfcReadHelper.java b/baselibrary/src/main/java/com/dayu/baselibrary/tools/nfc/NativeNfcReadHelper.java index 1080205..4c8aa09 100644 --- a/baselibrary/src/main/java/com/dayu/baselibrary/tools/nfc/NativeNfcReadHelper.java +++ b/baselibrary/src/main/java/com/dayu/baselibrary/tools/nfc/NativeNfcReadHelper.java @@ -128,7 +128,6 @@ @Override public String getCradType() { - MifareClassic mfc = MifareClassic.get(tag); if (null != mfc) { try { @@ -402,7 +401,9 @@ } } } else if (!listA_PS.isEmpty()) { - if (mfc.authenticateSectorWithKeyA(0, listA_PS.get(0))) { + if (mfc.authenticateSectorWithKeyA(0, defauleKey)) { + isOpen = true; + } else if (mfc.authenticateSectorWithKeyA(0, listA_PS.get(0))) { isOpen = true; } } @@ -448,7 +449,9 @@ } } } else if (!listA_PS.isEmpty()) { - if (mfc.authenticateSectorWithKeyA(0, listA_PS.get(0))) { + if (mfc.authenticateSectorWithKeyA(0, defauleKey)) { + isOpen = true; + } else if (mfc.authenticateSectorWithKeyA(0, listA_PS.get(0))) { isOpen = true; } } -- Gitblit v1.8.0