From 8945b94fc922fc6598f7558b318dc7674f525b70 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期四, 17 八月 2023 10:11:35 +0800
Subject: [PATCH] bug修改

---
 ycl-platform/src/main/java/com/ycl/timer/GetDingUserOrgTimer.java |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/ycl-platform/src/main/java/com/ycl/timer/GetDingUserOrgTimer.java b/ycl-platform/src/main/java/com/ycl/timer/GetDingUserOrgTimer.java
index 92d2be9..86e4f07 100644
--- a/ycl-platform/src/main/java/com/ycl/timer/GetDingUserOrgTimer.java
+++ b/ycl-platform/src/main/java/com/ycl/timer/GetDingUserOrgTimer.java
@@ -52,11 +52,11 @@
 
     @Override
     public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) {
-        // if (contextRefreshedEvent.getApplicationContext().getParent() == null) {
-        //     Thread thread = new Thread(this::run);
-        //     thread.setUncaughtExceptionHandler(handler);
-        //     thread.start();
-        // }
+         if (contextRefreshedEvent.getApplicationContext().getParent() == null) {
+             Thread thread = new Thread(this::run);
+             thread.setUncaughtExceptionHandler(handler);
+             thread.start();
+         }
     }
 
     @Autowired
@@ -204,6 +204,6 @@
 
     @Override
     public void run(ApplicationArguments args) throws Exception {
-        // run();
+         run();
     }
 }

--
Gitblit v1.8.0