Pārlūkot izejas kodu

排菜+同步中控

he.dujuan 3 gadi atpakaļ
vecāks
revīzija
244958bc6c

+ 3 - 1
eladmin-system/src/main/java/me/zhengjie/modules/quartz/task/DayPcDataTask.java

@@ -3,6 +3,7 @@ package me.zhengjie.modules.quartz.task;
 import lombok.RequiredArgsConstructor;
 import lombok.extern.slf4j.Slf4j;
 import me.zhengjie.modules.test.TestController;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Component;
 
 import java.text.ParseException;
@@ -11,6 +12,8 @@ import java.text.ParseException;
 @RequiredArgsConstructor
 @Component
 public class DayPcDataTask {
+    @Autowired
+    public TestController controller;
 
     public void run() throws ParseException {
         log.info("run 执行开始");
@@ -22,7 +25,6 @@ public class DayPcDataTask {
      * 排菜生产者
      */
     public void send() throws ParseException {
-        TestController controller = new TestController();
         controller.testSend();
         //获取连接
 //        Connection connection = ConnectionUtil.getConnection();

+ 2 - 2
eladmin-system/src/main/java/me/zhengjie/modules/quartz/task/ZkDataSyncTask.java

@@ -47,8 +47,8 @@ import java.util.*;
 public class ZkDataSyncTask {
 
     private final String key = "DMERPYT!@#$QWER2021+{:>";
-    private final String zkApiUrl = "http://192.168.1.14:6112";
-    private final String header_key = "X_YT_ACCESS_TOKEN";
+    private final String zkApiUrl = "https://smartpark.caih.com/zkxt";//http://192.168.1.14:6112
+    private final String header_key = "XYTACCESSTOKEN";//X_YT_ACCESS_TOKEN
 
     private final UserRepository userRepository;
     private final DmUserRepository dmUserRepository;