From f5180b600511d1871635bd364beb5bdd15f6ae88 Mon Sep 17 00:00:00 2001 From: zuojincheng <lf_zuo@163.com> Date: 星期三, 26 三月 2025 18:05:07 +0800 Subject: [PATCH] feat(nfc): 优化 NFC写卡功能并添加新方法- 在 BaseNfcWriteHelper 中添加了新的 writeData 方法,增加了 isConnect 参数 - 优化了 NativeNfcWriteHelper 中的 writeData 实现,支持选择性连接 NFC - 更新了 NfcWriteAdapter,支持新的 writeData 方法- 修改了 NfcWreatHelper 中的 writeData 方法,使用新的接口 - 优化了 NfcWreatActivity 中的写卡逻辑 --- qihealonelibrary/src/main/java/com/dayu/qihealonelibrary/dbBean/UserCardBean.java | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/qihealonelibrary/src/main/java/com/dayu/qihealonelibrary/dbBean/UserCardBean.java b/qihealonelibrary/src/main/java/com/dayu/qihealonelibrary/dbBean/UserCardBean.java index 4cc3adb..4b282a2 100644 --- a/qihealonelibrary/src/main/java/com/dayu/qihealonelibrary/dbBean/UserCardBean.java +++ b/qihealonelibrary/src/main/java/com/dayu/qihealonelibrary/dbBean/UserCardBean.java @@ -5,14 +5,20 @@ import java.io.Serializable; + + + + @Entity public class UserCardBean implements Serializable { @PrimaryKey(autoGenerate = true) public long id; private String serial ;//璁惧搴忓垪鍙凤紙涔熸槸璁惧缂栧彿锛� - private String userName ; + private String userName ;//鐢ㄦ埛鍚嶇О private String userID ;//韬唤璇佸彿 + + private String cardNumber;//鍗″彿 private long date; private String phone; @@ -25,6 +31,14 @@ private String addressCode;//鍖哄煙鍙� + public String getCardNumber() { + return cardNumber; + } + + public void setCardNumber(String cardNumber) { + this.cardNumber = cardNumber; + } + public String getAddressCode() { return addressCode; } -- Gitblit v1.8.0