From 3b604eb218a3b167144cc6e5d9c86cd95e16157c Mon Sep 17 00:00:00 2001
From: yxFwq <1>
Date: 星期六, 10 五月 2025 08:08:24 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/core/ServerBootstrap.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/main/java/com/zy/core/ServerBootstrap.java b/src/main/java/com/zy/core/ServerBootstrap.java
index 75fd83d..9bb4f6d 100644
--- a/src/main/java/com/zy/core/ServerBootstrap.java
+++ b/src/main/java/com/zy/core/ServerBootstrap.java
@@ -145,12 +145,12 @@
             SlaveConnection.put(SlaveType.Ste, ste.getId(), steThread);
         }
         // 鍒濆鍖栫绉ょ嚎绋�
-//        log.info("鍒濆鍖栫绉ょ嚎绋�...................................................");
-//        for (Slave scale : slaveProperties.getScale()) {
-//            ScaleThread barcodeThread = new ScaleThread(scale);
-//            new Thread(barcodeThread).start();
-//            SlaveConnection.put(SlaveType.Scale, scale.getId(), barcodeThread);
-//        }
+        log.info("鍒濆鍖栫绉ょ嚎绋�...................................................");
+        for (Slave scale : slaveProperties.getScale()) {
+            ScaleThread barcodeThread = new ScaleThread(scale);
+            new Thread(barcodeThread).start();
+            SlaveConnection.put(SlaveType.Scale, scale.getId(), barcodeThread);
+        }
     }
 
 
@@ -161,7 +161,7 @@
     @Component
     class killThread {
 
-        @Scheduled(cron = "0/3 * * * * ? ")
+//        @Scheduled(cron = "0/3 * * * * ? ")
         public void kill() {
             for (Map.Entry<CrnThread, Thread> entry : map.entrySet()) {
                 CRN_COUNT++;

--
Gitblit v1.9.1