From 41e4860f065a13b00441deff45455b62d3787e2c Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期三, 22 十月 2025 13:39:13 +0800
Subject: [PATCH] *

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

diff --git a/src/main/java/com/zy/core/ServerBootstrap.java b/src/main/java/com/zy/core/ServerBootstrap.java
index 90118a1..eb45f98 100644
--- a/src/main/java/com/zy/core/ServerBootstrap.java
+++ b/src/main/java/com/zy/core/ServerBootstrap.java
@@ -132,15 +132,36 @@
     public void destroy() {
     }
 
-    @Component
-    class licenseVerifyThread {
-
-        @Scheduled(cron = "0 0 4 * * ?")
-        public void licenseVerify() {
-            if (!new LicenseVerify().verify()){
-                SystemProperties.WCS_RUNNING_STATUS.set(Boolean.FALSE);
-            }
-        }
-    }
-
+//    @Component
+//    class licenseVerifyThread {
+//
+//        @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()){
+//                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