ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPWarnMsgAdptInfo.java
@@ -117,6 +117,7 @@ * 解析报文 */ public UPWarnMsgAdptInfo decode(WarnMsg warnMsg) { try { byte[] data = warnMsg.getData(); ByteBuf byteBuf = Unpooled.wrappedBuffer(data); this.vehicleNo = warnMsg.getVehicleNo(); @@ -139,6 +140,9 @@ this.infoLength = byteBuf.readInt(); //上报报警信息内容 this.infoContent = Jtt809Util.readGBKString(byteBuf, this.infoLength); }catch (Exception e){ e.printStackTrace(); } return this; } }