From 1c732150ad5e8b21efff07ecd923c4ff8fda60c1 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期二, 05 九月 2023 20:47:41 +0800
Subject: [PATCH] 100路视频

---
 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