From 87b052cbd5bb44bf90ac4e9c4aeaf1cdcf5acf63 Mon Sep 17 00:00:00 2001
From: cpT <1@123>
Date: 星期日, 22 六月 2025 15:30:44 +0800
Subject: [PATCH] #改造
---
src/main/java/com/zy/core/ServerBootstrap.java | 25 +++++++++++++++++++++++--
1 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/zy/core/ServerBootstrap.java b/src/main/java/com/zy/core/ServerBootstrap.java
index 90118a1..28352cb 100644
--- a/src/main/java/com/zy/core/ServerBootstrap.java
+++ b/src/main/java/com/zy/core/ServerBootstrap.java
@@ -137,10 +137,31 @@
@Scheduled(cron = "0 0 4 * * ?")
public void licenseVerify() {
+ int licenseVerifySignCount = 0;
+ boolean licenseVerifySign = false;
+ boolean systemSign = SystemProperties.WCS_RUNNING_STATUS.get();
if (!new LicenseVerify().verify()){
- SystemProperties.WCS_RUNNING_STATUS.set(Boolean.FALSE);
+ for (licenseVerifySignCount = 0;!licenseVerifySign && licenseVerifySignCount<10; licenseVerifySignCount++){
+ try{
+ Thread.sleep(1000);
+ }catch (Exception e){
+
+ }
+ if (!new LicenseVerify().verify()){
+ log.info("++++++++ 楠岃瘉璁稿彲璇佸け璐� ++++++++");
+ } else {
+ log.info("++++++++ 楠岃瘉璁稿彲璇佹垚鍔� ++++++++");
+ licenseVerifySign = true;
+ }
+ }
+ if (licenseVerifySignCount>10 && !licenseVerifySign){
+ SystemProperties.WCS_RUNNING_STATUS.set(Boolean.FALSE);
+ } else {
+ if (systemSign){
+ SystemProperties.WCS_RUNNING_STATUS.set(Boolean.TRUE);
+ }
+ }
}
}
}
-
}
--
Gitblit v1.9.1