From ef78717c5b956a26b360de44f774fc2b804296c2 Mon Sep 17 00:00:00 2001
From: 张世豪 <979909237@qq.com>
Date: 星期四, 20 十一月 2025 20:56:36 +0800
Subject: [PATCH] 修改20251120

---
 src/chushihua/lunxunzaixian.java |   36 ++++++++++++++++++------------------
 1 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/src/chushihua/lunxunzaixian.java b/src/chushihua/lunxunzaixian.java
index f4eeffa..29bc8d6 100644
--- a/src/chushihua/lunxunzaixian.java
+++ b/src/chushihua/lunxunzaixian.java
@@ -56,7 +56,7 @@
             onlinePollingThread = new Thread(new OnlinePollingTask(), "Online-Polling-Thread");
             onlinePollingThread.setDaemon(true);
             onlinePollingThread.start();
-            System.out.println("鍦ㄧ嚎杞宸插惎鍔紝鍛ㄦ湡闂撮殧: " + cycleInterval + "ms, 鍗℃Ы闂撮殧: " + slotInterval + "ms");
+            //System.out.println("鍦ㄧ嚎杞宸插惎鍔紝鍛ㄦ湡闂撮殧: " + cycleInterval + "ms, 鍗℃Ы闂撮殧: " + slotInterval + "ms");
             return true;
         } catch (Exception e) {
             System.err.println("鍚姩鍦ㄧ嚎杞绾跨▼鏃跺彂鐢熷紓甯�: " + e.getMessage());
@@ -72,7 +72,7 @@
      */
     public static boolean stopOnlinePolling() {
         if (!isRunning.get()) {
-            System.out.println("鍦ㄧ嚎杞鏈湪杩愯");
+            //System.out.println("鍦ㄧ嚎杞鏈湪杩愯");
             return false;
         }
         
@@ -101,7 +101,7 @@
         }
         
         shouldStop.set(false);
-        System.out.println("鍦ㄧ嚎杞宸插仠姝�");
+        //System.out.println("鍦ㄧ嚎杞宸插仠姝�");
         return true;
     }
     
@@ -111,17 +111,17 @@
      */
     public static boolean pauseOnlinePolling() {
         if (!isRunning.get()) {
-            System.out.println("鍦ㄧ嚎杞鏈湪杩愯锛屾棤娉曟殏鍋�");
+            //System.out.println("鍦ㄧ嚎杞鏈湪杩愯锛屾棤娉曟殏鍋�");
             return false;
         }
         
         if (isPaused.get()) {
-            System.out.println("鍦ㄧ嚎杞宸茬粡澶勪簬鏆傚仠鐘舵��");
+            //System.out.println("鍦ㄧ嚎杞宸茬粡澶勪簬鏆傚仠鐘舵��");
             return false;
         }
         
         isPaused.set(true);
-        System.out.println("鍦ㄧ嚎杞宸叉殏鍋�");
+        //System.out.println("鍦ㄧ嚎杞宸叉殏鍋�");
         return true;
     }
     
@@ -131,12 +131,12 @@
      */
     public static boolean resumeOnlinePolling() {
         if (!isRunning.get()) {
-            System.out.println("鍦ㄧ嚎杞鏈湪杩愯锛屾棤娉曟仮澶�");
+            //System.out.println("鍦ㄧ嚎杞鏈湪杩愯锛屾棤娉曟仮澶�");
             return false;
         }
         
         if (!isPaused.get()) {
-            System.out.println("鍦ㄧ嚎杞鏈浜庢殏鍋滅姸鎬�");
+            //System.out.println("鍦ㄧ嚎杞鏈浜庢殏鍋滅姸鎬�");
             return false;
         }
         
@@ -150,7 +150,7 @@
         synchronized (lunxunzaixian.class) {
             lunxunzaixian.class.notifyAll(); // 鍞ら啋绛夊緟鐨勭嚎绋�
         }
-        System.out.println("鍦ㄧ嚎杞宸叉仮澶�");
+        //System.out.println("鍦ㄧ嚎杞宸叉仮澶�");
         return true;
     }
     
@@ -195,7 +195,7 @@
     public static void setPollingIntervals(int cycleMs, int slotMs) {
         cycleInterval = Math.max(cycleMs, 1000); // 鏈�灏�1绉�
         slotInterval = Math.max(slotMs, 50);     // 鏈�灏�50姣
-        System.out.println("鍦ㄧ嚎杞闂撮殧宸茶缃� - 鍛ㄦ湡闂撮殧: " + cycleInterval + "ms, 鍗℃Ы闂撮殧: " + slotInterval + "ms");
+        //System.out.println("鍦ㄧ嚎杞闂撮殧宸茶缃� - 鍛ㄦ湡闂撮殧: " + cycleInterval + "ms, 鍗℃Ы闂撮殧: " + slotInterval + "ms");
         
         // 濡傛灉姝e湪杩愯锛岄噸鏂板惎鍔ㄤ互搴旂敤鏂扮殑闂撮殧
         if (isRunning.get()) {
@@ -275,7 +275,7 @@
     private static class OnlinePollingTask implements Runnable {
         @Override
         public void run() {
-            System.out.println("鍦ㄧ嚎杞绾跨▼寮�濮嬭繍琛�");
+            //System.out.println("鍦ㄧ嚎杞绾跨▼寮�濮嬭繍琛�");
             
             while (isRunning.get() && !Thread.currentThread().isInterrupted() && !shouldStop.get()) {
                 try {
@@ -311,7 +311,7 @@
                     Thread.sleep(cycleInterval);
                     
                 } catch (InterruptedException e) {
-                    System.out.println("鍦ㄧ嚎杞绾跨▼琚腑鏂�");
+                    //System.out.println("鍦ㄧ嚎杞绾跨▼琚腑鏂�");
                     Thread.currentThread().interrupt();
                     break;
                 } catch (Exception e) {
@@ -328,7 +328,7 @@
                 }
             }
             
-            System.out.println("鍦ㄧ嚎杞绾跨▼缁撴潫杩愯");
+            //System.out.println("鍦ㄧ嚎杞绾跨▼缁撴潫杩愯");
         }
         
         /**
@@ -357,7 +357,7 @@
             
             if (cardSlots.isEmpty()) {
                 if (lunxun.DEBUG_ENABLED) {
-                    System.out.println("娌℃湁鎵惧埌鏈夊崱鐨勫崱妲�");
+                    //System.out.println("娌℃湁鎵惧埌鏈夊崱鐨勫崱妲�");
                 }
                 return true;
             }
@@ -393,7 +393,7 @@
             }
             
             if (polledCount > 0 && lunxun.DEBUG_ENABLED) {
-                System.out.println("鍦ㄧ嚎杞瀹屾垚锛屾垚鍔熸煡璇� " + polledCount + "/" + totalCardSlots + " 涓湁鍗″崱妲�");
+                //System.out.println("鍦ㄧ嚎杞瀹屾垚锛屾垚鍔熸煡璇� " + polledCount + "/" + totalCardSlots + " 涓湁鍗″崱妲�");
             }
             
             return polledCount > 0;
@@ -412,7 +412,7 @@
                 if (result) {
                     // 璁板綍璋冭瘯淇℃伅锛堝噺灏戣緭鍑洪鐜囷級
                     if (lunxun.DEBUG_ENABLED && (slotNumber == 1 || slotNumber % 10 == 0)) {
-                        System.out.println("鍦ㄧ嚎杞 - 鏌ヨ鏈夊崱鍗℃Ы " + slotNumber);
+                        //System.out.println("鍦ㄧ嚎杞 - 鏌ヨ鏈夊崱鍗℃Ы " + slotNumber);
                     }
                     return true;
                 } else {
@@ -442,7 +442,7 @@
             return 0;
         }
         
-        System.out.println("寮�濮嬬珛鍗宠疆璇㈡湁鍗″崱妲�...");
+        //System.out.println("寮�濮嬬珛鍗宠疆璇㈡湁鍗″崱妲�...");
         
         OnlinePollingTask task = new OnlinePollingTask();
         
@@ -471,7 +471,7 @@
      */
     public static boolean setOnlinePollingPaused(boolean paused) {
         if (!isRunning.get()) {
-            System.out.println("鍦ㄧ嚎杞鏈湪杩愯锛屾棤娉曡缃殏鍋滅姸鎬�");
+            //System.out.println("鍦ㄧ嚎杞鏈湪杩愯锛屾棤娉曡缃殏鍋滅姸鎬�");
             return false;
         }
         

--
Gitblit v1.9.3