From 655ba6bfba4b1087e093efe675e46afbff597b97 Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期二, 27 一月 2026 09:19:38 +0800
Subject: [PATCH] #
---
zy-acs-common/src/main/java/com/zy/acs/common/domain/protocol/action/ReadyReleaseToConveyorSta.java | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/zy-acs-common/src/main/java/com/zy/acs/common/domain/protocol/action/ReadyReleaseToConveyorSta.java b/zy-acs-common/src/main/java/com/zy/acs/common/domain/protocol/action/ReadyReleaseToConveyorSta.java
index a0f25df..0aaa444 100644
--- a/zy-acs-common/src/main/java/com/zy/acs/common/domain/protocol/action/ReadyReleaseToConveyorSta.java
+++ b/zy-acs-common/src/main/java/com/zy/acs/common/domain/protocol/action/ReadyReleaseToConveyorSta.java
@@ -2,7 +2,6 @@
import com.zy.acs.common.domain.protocol.IActionBody;
import com.zy.acs.common.utils.Utils;
-import com.zy.acs.framework.common.RadixTools;
import lombok.Data;
import java.io.Serializable;
@@ -19,9 +18,14 @@
@Override
public byte[] writeToBytes() {
- byte[] heightBytes = Utils.reverse(RadixTools.shortToByte(this.height));
- byte[] depthBytes = Utils.reverse(RadixTools.shortToByte(this.depth));
- return Utils.merge(heightBytes, depthBytes);
+// byte[] heightBytes = Utils.reverse(RadixTools.shortToByte(this.height));
+// byte[] depthBytes = Utils.reverse(RadixTools.shortToByte(this.depth));
+// return Utils.merge(heightBytes, depthBytes);
+
+ byte heightByte = (byte) ((this.height == null ? 0 : this.height) & 0xFF);
+ byte depthByte = (byte) ((this.depth == null ? 0 : this.depth) & 0xFF);
+ return Utils.merge(heightByte, depthByte);
+// return new byte[]{ heightByte, depthByte };
}
@Override
--
Gitblit v1.9.1