左晓为主开发手持机充值管理机
qihealonelibrary/src/main/java/com/dayu/qihealonelibrary/card/RegionCard.java
@@ -16,24 +16,31 @@
    public String cardType = CardCommon.REGION;//卡命令
    public short region;//区域地址(低前高后) 可以识别某县镇村
    public int region;//区域地址(低前高后) 可以识别某县镇村
    public short controllerCodel;// 控制器编号(低前高后) 本区域内控制器编号
    public int controllerCodel;// 控制器编号(低前高后) 本区域内控制器编号
    public short getRegion() {
    public int getRegion() {
        return region;
    }
    public short getControllerCodel() {
    public void setRegion(int region) {
        this.region = region;
    }
    public int getControllerCodel() {
        return controllerCodel;
    }
    public void setControllerCodel(int controllerCodel) {
        this.controllerCodel = controllerCodel;
    }
    public byte[] toByte() {
        Zero zero = new Zero();
        return zero.toByte();
    }
    public static RegionCard getBean(List<byte[]> data){
@@ -43,12 +50,12 @@
        byte[] regionByte = new byte[2];
        System.arraycopy(zero, 1, regionByte, 0, regionByte.length);
        regionCard.region = (short) HexUtil.get16to10LowHigh(HexUtil.bytesToHex(regionByte));
        regionCard.region = HexUtil.get16To10LowHightByBytes(regionByte);
        byte[] controllerCodelByte = new byte[2];
        System.arraycopy(zero, 3, controllerCodelByte, 0, controllerCodelByte.length);
        regionCard.controllerCodel = (short) HexUtil.get16to10LowHigh(HexUtil.bytesToHex(controllerCodelByte));
        regionCard.controllerCodel = HexUtil.get16To10LowHightByBytes(controllerCodelByte);
        return regionCard;