From 397738b8c9cc5d5d89a962b1b5073fe201ebe680 Mon Sep 17 00:00:00 2001
From: vince <757871790@qq.com>
Date: 星期三, 08 十一月 2023 11:21:46 +0800
Subject: [PATCH] 地磅推送

---
 src/main/java/com/fzzy/gateway/GatewayRunner.java |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/fzzy/gateway/GatewayRunner.java b/src/main/java/com/fzzy/gateway/GatewayRunner.java
index e4827f5..9dbdcd8 100644
--- a/src/main/java/com/fzzy/gateway/GatewayRunner.java
+++ b/src/main/java/com/fzzy/gateway/GatewayRunner.java
@@ -1,7 +1,9 @@
 package com.fzzy.gateway;
 
 import com.fzzy.gateway.hx2023.service.ApiInitService;
+import com.fzzy.mqtt.MqttPublishService;
 import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.CommandLineRunner;
 import org.springframework.core.annotation.Order;
 import org.springframework.stereotype.Service;
@@ -18,12 +20,12 @@
 
     @Resource
     private ApiInitService apiInitService;
-
-
+    @Autowired
+    private MqttPublishService mqttPublishService;
     @Override
     public void run(String... args) throws Exception {
+        mqttPublishService.init();
         //鎵ц鍒濆鍖栨柟妗�
-
         apiInitService.init();
     }
 

--
Gitblit v1.9.3