左晓为主开发手持机充值管理机
zuoxiao
2023-11-15 3502384043c282226c0dbc90a191806e007f1d17
app/src/main/java/com/dayu/recharge/activity/ReadCardAcitivy.java
@@ -56,7 +56,7 @@
    private static final int CONFIGURATION_POWER_CARD = 9;
    private static final int PASS_WORD_CRAD = 10;
    private static final int ERROR = -1;
    volatile UserCard userCard;
    ActivityRedCardBinding redCardBinding;
@@ -151,16 +151,16 @@
                            }
                        } else {
                            message.what = ERROR;
                            message.what = MyCommon.ERROR;
                        }
                        handler.sendMessage(message);
                    }
                    @Override
                    public void error() {
                    public void error(int code) {
                        Message message = new Message();
                        message.what = ERROR;
                        message.what = code;
                        handler.sendMessage(message);
                    }
                });
@@ -224,6 +224,10 @@
                    redCardBinding.readCardTypeTV.setText("当前为密码卡");
                    stopAnim();
                    break;
                case MyCommon.ERROR_MOVE:
                    stopAnim();
                    ToastUtil.show("连接中断,请重新贴合卡片");
                    break;
                default:
                    ToastUtil.show(ReadCardAcitivy.this, "卡片无法识别");
                    stopAnim();