From ad53845a19e9e3504f2470867ab2770026ce71d3 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期二, 13 五月 2025 08:52:18 +0800
Subject: [PATCH] #增加库位地图

---
 src/main/java/com/zy/core/thread/impl/NyShuttleThread.java |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/zy/core/thread/impl/NyShuttleThread.java b/src/main/java/com/zy/core/thread/impl/NyShuttleThread.java
index 32037a8..29641d6 100644
--- a/src/main/java/com/zy/core/thread/impl/NyShuttleThread.java
+++ b/src/main/java/com/zy/core/thread/impl/NyShuttleThread.java
@@ -721,6 +721,19 @@
             }
         }
 
+        //***************鍒ゆ柇鏄惁婊″厖鏍″噯***************
+        Config shuttleMaxPowerVerifyConfig = configService.selectOne(new EntityWrapper<Config>()
+                .eq("code", "shuttleMaxPowerVerify")
+                .eq("status", 1));
+        if (shuttleMaxPowerVerifyConfig != null) {
+            if (shuttleMaxPowerVerifyConfig.getValue().equals("true")) {
+                if (this.shuttleProtocol.getBatteryVoltage() < 5630) {
+                    return false;//鐢靛帇涓嶅缁х画鍏呯數
+                }
+            }
+        }
+        //***************鍒ゆ柇鏄惁婊″厖鏍″噯***************
+
         if (this.shuttleProtocol.getHasCharge() == null) {
             return false;
         }
@@ -1181,7 +1194,8 @@
            writer.flush();
 //            System.out.println("Sent message to server: " + JSON.toJSONString(httpCommand));
        }catch (Exception e) {
-           e.printStackTrace();
+//           e.printStackTrace();
+           System.out.println("socket write error");
        }
     }
 

--
Gitblit v1.9.1