| | |
| | | * Date: 2023-11-10 19:52 |
| | | * Description: 读卡界面 |
| | | */ |
| | | public class ReadCardAcitivy extends BaseNfcActivity { |
| | | public class ReadCardAcitivy extends QHOlineBaseNfcActivity { |
| | | |
| | | volatile UserCard userCard; |
| | | ActivityRedCardQhlBinding 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); |
| | | getUserInfoAndCardInfo(cardNumber,userCard.getMyUserCode()); |
| | | } else { |
| | | |