From 572a655759f4f8fcfce2c89db491dd837327527a Mon Sep 17 00:00:00 2001
From: yxFwq <1>
Date: 星期一, 03 十一月 2025 09:54:09 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/core/MainProcess.java | 35 ++++++++++++++++++-----------------
1 files changed, 18 insertions(+), 17 deletions(-)
diff --git a/src/main/java/com/zy/core/MainProcess.java b/src/main/java/com/zy/core/MainProcess.java
index 8e16633..5254efc 100644
--- a/src/main/java/com/zy/core/MainProcess.java
+++ b/src/main/java/com/zy/core/MainProcess.java
@@ -39,8 +39,8 @@
thread = new Thread(this::cenAndDevRun);
thread.start();
- thread2 = new Thread(this::jarRun);
- thread2.start();
+// thread2 = new Thread(this::jarRun);
+// thread2.start();
}
@@ -99,22 +99,7 @@
mainService.signTrunBig();
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- }
- private void jarRun() {
- while (!Thread.currentThread().isInterrupted()) {
- try {
- // 闂撮殧
- Thread.sleep(1000);
-
- // 绯荤粺杩愯鐘舵�佸垽鏂�
- if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
- continue;
- }
k++;
if (k>5) {
k=0;
@@ -141,11 +126,27 @@
mainService.jarChargeGenerate();
/************************************JAR璋冨害************************************/
+
} catch (Exception e) {
e.printStackTrace();
}
}
}
+ private void jarRun() {
+ while (!Thread.currentThread().isInterrupted()) {
+ try {
+
+ // 闂撮殧
+ Thread.sleep(500);
+
+ // 绯荤粺杩愯鐘舵�佸垽鏂�
+ if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
+ continue;
+ }} catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ }
@PreDestroy
public void shutDown(){
--
Gitblit v1.9.1