From 8e19e67d1178e834a868f4a820d827ddf64c6e01 Mon Sep 17 00:00:00 2001
From: 野心家 <1051256694@qq.com>
Date: 星期三, 28 五月 2025 12:46:08 +0800
Subject: [PATCH] #ZH

---
 src/main/java/com/zy/core/thread/LedThread.java |   21 +++++++++++++--------
 1 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/src/main/java/com/zy/core/thread/LedThread.java b/src/main/java/com/zy/core/thread/LedThread.java
index 056c0e8..1c33808 100644
--- a/src/main/java/com/zy/core/thread/LedThread.java
+++ b/src/main/java/com/zy/core/thread/LedThread.java
@@ -112,7 +112,7 @@
                     if(idx >= 0){
                         strQty.substring(0,idx);
                     }
-                    page.newLine(matDto.getMaknx() + "[鏁伴噺" + strQty +"]");
+                    page.newLine(matDto.getMaktx() + "[鏁伴噺" + strQty +"]");
 //                    page.newLine(matDto.getMaknx() + "銆愭暟閲�" + matDto.getCount() +"銆�");
                 }
             }
@@ -202,14 +202,19 @@
             screen.turnOn();
         } catch (Exception ignore) {
         }
-        DeviceErrorService deviceErrorService = SpringUtils.getBean(DeviceErrorService.class);
-        if (connRes) {
-            log.info("led杩炴帴鎴愬姛 ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort());
-            deviceErrorService.deleteDeviceError("led", slave.getId());
-        } else {
-            log.error("led杩炴帴澶辫触锛侊紒锛� ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort());
-            deviceErrorService.addDeviceError("led", slave.getId(), "led杩炴帴澶辫触");
+        try{
+            DeviceErrorService deviceErrorService = SpringUtils.getBean(DeviceErrorService.class);
+            if (connRes) {
+                log.info("led杩炴帴鎴愬姛 ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort());
+                deviceErrorService.deleteDeviceError("led", slave.getId());
+            } else {
+                log.error("led杩炴帴澶辫触锛侊紒锛� ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort());
+                deviceErrorService.addDeviceError("led", slave.getId(), "led杩炴帴澶辫触");
+            }
+        } catch (Exception e){
+//            log.error("e:"+e.getMessage());
         }
+
         return connRes;
     }
 

--
Gitblit v1.9.1