puzhibing
2025-04-25 9ac1967a101b233ca7552984f9de0f7f96bb3218
修改bug
1个文件已修改
12 ■■■■■ 已修改文件
ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPAuthorizeMsgStartup.java 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPAuthorizeMsgStartup.java
@@ -43,10 +43,14 @@
     * 解析登录报文
     */
    public UPAuthorizeMsgStartup decode(ByteBuf byteBuf) {
        this.dataType = byteBuf.readShort();
        this.plateformId = Jtt809Util.readGBKString(byteBuf, 11);
        this.authorizeCode1 = Jtt809Util.readGBKString(byteBuf, 64);
        this.authorizeCode2 = Jtt809Util.readGBKString(byteBuf, 64);
        try {
            this.dataType = byteBuf.readShort();
            this.plateformId = Jtt809Util.readGBKString(byteBuf, 11);
            this.authorizeCode1 = Jtt809Util.readGBKString(byteBuf, 64);
            this.authorizeCode2 = Jtt809Util.readGBKString(byteBuf, 64);
        }catch (Exception e){
            e.printStackTrace();
        }
        return this;
    }
}