From c854f26ad2a0ff056cbb8505f838ac3e6b4a4d4c Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期日, 22 十月 2023 17:28:27 +0800
Subject: [PATCH] #提升机异常修复

---
 src/main/java/com/zy/core/thread/LiftThread.java |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/zy/core/thread/LiftThread.java b/src/main/java/com/zy/core/thread/LiftThread.java
index 71a7099..935c90c 100644
--- a/src/main/java/com/zy/core/thread/LiftThread.java
+++ b/src/main/java/com/zy/core/thread/LiftThread.java
@@ -358,6 +358,10 @@
         //鍙栧嚭鍛戒护
         NyLiftCommand command = commands.get(commandStep);
 
+        if (!redisCommand.getLiftNo().equals(liftProtocol.getLiftNo())) {
+            return false;
+        }
+
         //涓嬪彂鍛戒护
         if (!write(command)) {
             News.error("鎻愬崌鏈哄懡浠や笅鍙戝け璐ワ紝鎻愬崌鏈哄彿={}锛屼换鍔℃暟鎹�={}", command.getLiftNo(), JSON.toJSON(command));
@@ -376,7 +380,7 @@
             short[] commandArr = getCommandArr(command);//鑾峰彇鍛戒护鎶ユ枃
             BasLiftOpt opt = new BasLiftOpt(
                     redisCommand.getWrkNo().intValue(),
-                    redisCommand.getLiftNo().intValue(),
+                    liftProtocol.getLiftNo().intValue(),
                     new Date(),
                     null,
                     null,

--
Gitblit v1.9.1