修复列表显示异常的bug
修复充值后用户卡结构翻译异常的bug
|  |  |  | 
|---|
|  |  |  | applicationId "com.dayu.recharge" | 
|---|
|  |  |  | minSdk 23 | 
|---|
|  |  |  | targetSdk 26 | 
|---|
|  |  |  | versionCode 16 | 
|---|
|  |  |  | versionName "1.6" | 
|---|
|  |  |  | versionCode 20 | 
|---|
|  |  |  | versionName "2.0" | 
|---|
|  |  |  | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //        ndk{ | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (mNfcAdapter != null && !mNfcAdapter.isEnabled()) { | 
|---|
|  |  |  | startActivity(new Intent(Settings.ACTION_NFC_SETTINGS)); | 
|---|
|  |  |  | ToastUtil.show( "请在系统设置中先启用NFC功能!"); | 
|---|
|  |  |  | ToastUtil.showLong( "请在系统设置中先启用NFC功能!"); | 
|---|
|  |  |  | return false; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return true; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | rechargeBean.setSerial(adminData.getSerial()); | 
|---|
|  |  |  | userCard.setRechargeDate(Calendar.getInstance()); | 
|---|
|  |  |  | userCard.setBalance(balance); | 
|---|
|  |  |  | rechargeBean.setBalance(MornyUtil.changeF2Y(balance)); | 
|---|
|  |  |  | rechargeBean.setInitPeasantCode(initPeasantCode); | 
|---|
|  |  |  | rechargeBean.setOrderID(orderId); | 
|---|
|  |  |  | 
|---|
|  |  |  | int balance = userCard.getBalance(); | 
|---|
|  |  |  | if (!TextUtils.isEmpty(morny)) { | 
|---|
|  |  |  | binding.tip.setText("充值成功!"); | 
|---|
|  |  |  | balance = userCard.getBalance() + MornyUtil.changeY2F(morny); | 
|---|
|  |  |  | balance = userCard.getBalance() ; | 
|---|
|  |  |  | binding.redRemainderMorny.setText("充值金额:" + morny + " 元"); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | binding.tip.setText("开卡成功!"); | 
|---|
|  |  |  | 
|---|
|  |  |  | System.arraycopy(zero,9,balanceBytes,0,balanceBytes.length); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | userCard.balance = HexUtil.get16to10LowHigh(HexUtil.bytesToHex(balanceBytes)); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | byte[] addressCodeBytes = new byte[6]; | 
|---|
|  |  |  | System.arraycopy(zero,13,addressCodeBytes,0,2); | 
|---|
|  |  |  | System.arraycopy(two,11,addressCodeBytes,0,4); | 
|---|
|  |  |  | System.arraycopy(two,11,addressCodeBytes,2,4); | 
|---|
|  |  |  | userCard.addressCode = BcdUtil.bcdToStr(addressCodeBytes); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | int year = 0; | 
|---|
|  |  |  | 
|---|
|  |  |  | public static void show(String data) { | 
|---|
|  |  |  | Toast.makeText(MyApplication.myApplication, data, Toast.LENGTH_SHORT).show(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public static void showLong(String data) { | 
|---|
|  |  |  | Toast.makeText(MyApplication.myApplication, data, Toast.LENGTH_LONG).show(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <LinearLayout | 
|---|
|  |  |  | android:layout_width="match_parent" | 
|---|
|  |  |  | android:layout_height="match_parent" | 
|---|
|  |  |  | android:layout_height="wrap_content" | 
|---|
|  |  |  | android:orientation="vertical"> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <LinearLayout | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <LinearLayout | 
|---|
|  |  |  | android:layout_width="match_parent" | 
|---|
|  |  |  | android:layout_height="match_parent" | 
|---|
|  |  |  | android:layout_height="wrap_content" | 
|---|
|  |  |  | android:orientation="vertical"> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <LinearLayout | 
|---|