From b10dcb75c8a8dd4f9b838eed8adfc8e0b4d9283f Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期日, 30 三月 2025 13:54:00 +0800
Subject: [PATCH] *
---
src/main/java/com/zy/core/MainProcess.java | 20 +++++++++++++++-----
1 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/src/main/java/com/zy/core/MainProcess.java b/src/main/java/com/zy/core/MainProcess.java
index 10fd07b..2bca69b 100644
--- a/src/main/java/com/zy/core/MainProcess.java
+++ b/src/main/java/com/zy/core/MainProcess.java
@@ -29,12 +29,24 @@
private int j = 0;
private int k = 0;
private int l = 0;
+ private int[] autoZ = new int[]{0,0,0,0,0,0,0};
/**
* =====>> 寮�濮嬪伐浣�
*/
public void start(){
thread = new Thread(() -> {
+ try{
+ Thread.sleep(200);
+ log.info("++++++++ 寮�濮嬮獙璇佽鍙瘉 ++++++++");
+ if (!mainService.licenseVerify()){
+ SystemProperties.WCS_RUNNING_STATUS.set(Boolean.FALSE);
+ log.info("++++++++ 楠岃瘉璁稿彲璇佸け璐� ++++++++");
+ } else {
+ SystemProperties.WCS_RUNNING_STATUS.set(Boolean.TRUE);
+ log.info("++++++++ 楠岃瘉璁稿彲璇佹垚鍔� ++++++++");
+ }
+ } catch (Exception e) {}
while (!Thread.currentThread().isInterrupted()) {
try {
// 闂撮殧
@@ -44,17 +56,15 @@
if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
continue;
}
+
//鏇存柊浣嶇疆淇℃伅
mainService.updateStePositionNearby();
-
+ //鏇存柊浣嶇疆淇℃伅
mainService.updateStePosition();
-
// 浠诲姟涓嬪彂
mainService.DevpTaskNoRun();
-
// 浠诲姟瀹屾垚
- mainService.rgvCompleteWrkMastSta();
-
+ mainService.rgvCompleteWrkMastSta(autoZ);
//鏇存柊浣嶇疆淇℃伅
mainService.updateStePosition();
--
Gitblit v1.9.1