From 5393e1b43f7148adc93dd5a29f7b6fd4a054eec6 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期四, 05 六月 2025 16:13:22 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPExgMsgReportDriverInfoAck.java | 24 ++++++++++++++---------- 1 files changed, 14 insertions(+), 10 deletions(-) diff --git a/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPExgMsgReportDriverInfoAck.java b/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPExgMsgReportDriverInfoAck.java index a01879d..eed7085 100644 --- a/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPExgMsgReportDriverInfoAck.java +++ b/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPExgMsgReportDriverInfoAck.java @@ -64,16 +64,20 @@ * 解析报文 */ public UPExgMsgReportDriverInfoAck decode(UPExgMsg exgMsg) { - byte[] data = exgMsg.getData(); - ByteBuf byteBuf = Unpooled.wrappedBuffer(data); - this.vehicleNo = exgMsg.getVehicleNo(); - this.vehicleColor = exgMsg.getVehicleColor(); - this.dataType = exgMsg.getDataType(); - this.dataLength = exgMsg.getDataLength(); - this.driverName = Jtt809Util.readGBKString(byteBuf, 16); - this.driverId = Jtt809Util.readGBKString(byteBuf, 20); - this.licence = Jtt809Util.readGBKString(byteBuf, 40); - this.orgName = Jtt809Util.readGBKString(byteBuf, 200); + try { + byte[] data = exgMsg.getData(); + ByteBuf byteBuf = Unpooled.wrappedBuffer(data); + this.vehicleNo = exgMsg.getVehicleNo(); + this.vehicleColor = exgMsg.getVehicleColor(); + this.dataType = exgMsg.getDataType(); + this.dataLength = exgMsg.getDataLength(); + this.driverName = Jtt809Util.readGBKString(byteBuf, 16); + this.driverId = Jtt809Util.readGBKString(byteBuf, 20); + this.licence = Jtt809Util.readGBKString(byteBuf, 40); + this.orgName = Jtt809Util.readGBKString(byteBuf, 200); + }catch (Exception e){ + e.printStackTrace(); + } return this; } } -- Gitblit v1.7.1