From c4803722064832842aaa7078f8b7206f23df4dfa Mon Sep 17 00:00:00 2001
From: Administrator <XS@163.COM>
Date: 星期二, 28 四月 2026 08:42:54 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/core/network/real/ZyDualCrnRealConnect.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/zy/core/network/real/ZyDualCrnRealConnect.java b/src/main/java/com/zy/core/network/real/ZyDualCrnRealConnect.java
index c30b407..c3e2ed8 100644
--- a/src/main/java/com/zy/core/network/real/ZyDualCrnRealConnect.java
+++ b/src/main/java/com/zy/core/network/real/ZyDualCrnRealConnect.java
@@ -241,7 +241,7 @@
     @Override
     public CommandResponse sendCommand(DualCrnCommand command) {
         RedisUtil redisUtil = SpringUtils.getBean(RedisUtil.class);
-        redisUtil.set(RedisKeyType.DUAL_CRN_SEND_COMMAND_LOCK.key + deviceConfig.getDeviceNo(), "lock", 3);
+        redisUtil.set(RedisKeyType.DUAL_CRN_SEND_COMMAND_LOCK.key + deviceConfig.getDeviceNo(), "lock", 1);
         CommandResponse response = new CommandResponse(false);
          try {
              if (null == command) {
@@ -320,7 +320,7 @@
                  OutputQueue.CRN.offer(MessageFormat.format("銆恵0}銆慬id:{1}] >>>>> 鍛戒护涓嬪彂锛� {2}", DateUtils.convert(new Date()), command.getCrnNo(), JSON.toJSON(command)));
                  response.setResult(true);
                  response.setMessage("鍛戒护涓嬪彂鎴愬姛");
-                 redisUtil.set(RedisKeyType.DUAL_CRN_SEND_COMMAND_LOCK.key + deviceConfig.getDeviceNo(), "lock", 3);
+                 redisUtil.set(RedisKeyType.DUAL_CRN_SEND_COMMAND_LOCK.key + deviceConfig.getDeviceNo(), "lock", 1);
              } else {
                  News.error("鍙屽伐浣嶅爢鍨涙満鍐欏叆鍫嗗灈鏈簆lc鏁版嵁澶辫触 ===>> [id:{}]", command.getCrnNo());
                  OutputQueue.CRN.offer(MessageFormat.format("銆恵0}銆戝啓鍏ュ爢鍨涙満plc鏁版嵁澶辫触 ===>> [id:{1}]", DateUtils.convert(new Date()), command.getCrnNo()));

--
Gitblit v1.9.1