From 3d4eeb82dd61f8951616dece2425e870116bc23d Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期五, 04 四月 2025 15:56:37 +0800
Subject: [PATCH] 提交最终版本和配置线上环境

---
 ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/DOWNWarnMsgUrgeTodoReq.java |   40 +++++++++++++++++++++++++++-------------
 1 files changed, 27 insertions(+), 13 deletions(-)

diff --git a/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/DOWNWarnMsgUrgeTodoReq.java b/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/DOWNWarnMsgUrgeTodoReq.java
index 41d5ef7..0c92cb0 100644
--- a/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/DOWNWarnMsgUrgeTodoReq.java
+++ b/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/DOWNWarnMsgUrgeTodoReq.java
@@ -79,17 +79,15 @@
 	public DOWNWarnMsgUrgeTodoReq build(UPWarnMsgAdptInfo upWarnMsgAdptInfo) {
 		this.vehicleNo = upWarnMsgAdptInfo.getVehicleNo();
 		this.vehicleColor = upWarnMsgAdptInfo.getVehicleColor();
-		this.dataType = upWarnMsgAdptInfo.getDataType();
-		this.dataLength = upWarnMsgAdptInfo.getDataLength();
 		this.warnSrc = upWarnMsgAdptInfo.getWarnSrc();
 		this.warnType = upWarnMsgAdptInfo.getWarnType();
 		this.warnTime = upWarnMsgAdptInfo.getWarnTime();
 		this.supervisionId = upWarnMsgAdptInfo.getInfoId();
 		this.supervisionEndTime = LocalDateTime.now().plusDays(7).toEpochSecond(ZoneOffset.UTC);
 		this.supervisionLevel = 0x01;
-		this.supervisor = "admin";
-		this.supervisorTel = "";
-		this.supervisorEmail = "";
+		this.supervisor = "谢茜";
+		this.supervisorTel = "18808258011";
+		this.supervisorEmail = "1360001080@qq.com";
 		return this;
 	}
 	
@@ -100,8 +98,12 @@
 	public byte[] encode() {
 		ByteBuf byteBuf = Unpooled.buffer(120);
 		byte[] bytes1 = this.getVehicleNo().getBytes();
-		for (byte b : bytes1) {
-			byteBuf.writeByte(b);
+		for (int i = 0; i < 21; i++) {
+			if (i < bytes1.length) {
+				byteBuf.writeByte(bytes1[i]);
+			} else {
+				byteBuf.writeByte(0x00);
+			}
 		}
 		byteBuf.writeByte(this.getVehicleColor());
 		byteBuf.writeShort(this.getDataType());
@@ -113,16 +115,28 @@
 		byteBuf.writeLong(this.getSupervisionEndTime());
 		byteBuf.writeByte(this.getSupervisionLevel());
 		byte[] bytes2 = this.getSupervisor().getBytes();
-		for (byte b : bytes2) {
-			byteBuf.writeByte(b);
+		for (int i = 0; i < 16; i++) {
+			if (i < bytes2.length) {
+				byteBuf.writeByte(bytes2[i]);
+			} else {
+				byteBuf.writeByte(0x00);
+			}
 		}
 		byte[] bytes3 = this.getSupervisorTel().getBytes();
-		for (byte b : bytes3) {
-			byteBuf.writeByte(b);
+		for (int i = 0; i < 20; i++) {
+			if (i < bytes3.length) {
+				byteBuf.writeByte(bytes3[i]);
+			} else {
+				byteBuf.writeByte(0x00);
+			}
 		}
 		byte[] bytes4 = this.getSupervisorEmail().getBytes();
-		for (byte b : bytes4) {
-			byteBuf.writeByte(b);
+		for (int i = 0; i < 32; i++) {
+			if (i < bytes4.length) {
+				byteBuf.writeByte(bytes4[i]);
+			} else {
+				byteBuf.writeByte(0x00);
+			}
 		}
 		byte[] bytes = ByteBufUtil.getBytes(byteBuf);
 		byteBuf.release();

--
Gitblit v1.7.1