liurunyu
2 天以前 2daa780ed9c74cb689f7c1e6a13f8aadebd57208
pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/Cd_87_Up.java
@@ -73,10 +73,17 @@
        short portLen = ByteUtilUnsigned.byte2Byte(bs, index) ;
        index++ ;
        cdData.domain = ByteUtil.bytes2String_BE(bs, index, index + domainLen - 1) ;
        if(domainLen > 0){
            cdData.domain = ByteUtil.bytes2String_BE(bs, index, index + domainLen - 1) ;
        }else{
            cdData.domain = "" ;
        }
        index += domainLen ;
        cdData.port = Integer.parseInt(ByteUtil.bytes2String_BE(bs, index, index + portLen - 1)) ;
        if(portLen > 0){
            cdData.port = Integer.parseInt(ByteUtil.bytes2String_BE(bs, index, index + portLen - 1)) ;
        }else{
            cdData.port = 0 ;
        }
    }
}