|  |  |  | 
|---|
|  |  |  | * Date: 2023-11-10 19:52 | 
|---|
|  |  |  | * Description: 读卡界面 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public class ReadCardAcitivy extends BaseNfcActivity { | 
|---|
|  |  |  | public class ReadCardAcitivy extends QHAloneBaseNfcActivity { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | volatile UserCard userCard; | 
|---|
|  |  |  | ActivityRedCardQhaBinding redCardBinding; | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public void onNewIntent(Intent intent) { | 
|---|
|  |  |  | public void onNfcBack(Intent intent) { | 
|---|
|  |  |  | this.intent = intent; | 
|---|
|  |  |  | ProgressDialog.show(this); | 
|---|
|  |  |  | if (NfcAdapter.ACTION_TAG_DISCOVERED.equals(intent.getAction())) { | 
|---|
|  |  |  | readAllData(intent); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | super.onNewIntent(intent); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (!data.isEmpty()) { | 
|---|
|  |  |  | if (!TextUtils.isEmpty(cardNumber)) { | 
|---|
|  |  |  | userCard = UserCard.getBean(data); | 
|---|
|  |  |  | userCard = new UserCard().getBean(data); | 
|---|
|  |  |  | List<UserCardBean> userCardBeans = baseDao.userCardDao().findUserName(cardNumber); | 
|---|
|  |  |  | if (userCardBeans != null && !userCardBeans.isEmpty()) { | 
|---|
|  |  |  | UserCardBean userName = userCardBeans.get(0); | 
|---|