vince
2023-11-17 f91db6022539e797c958c1fac16dc5e53db4f892
src/main/java/com/fzzy/gateway/GatewayRunner.java
@@ -22,11 +22,25 @@
    private ApiInitService apiInitService;
    @Autowired
    private MqttPublishService mqttPublishService;
    @Autowired
    private  GatewayTimerScheduled scheduled;
    @Override
    public void run(String... args) throws Exception {
        mqttPublishService.init();
        //执行初始化方案
        apiInitService.init();
        //获取气象信息
        scheduled.doWeatherExe();
        //更新设备缓存
        apiInitService.updateDeviceCache();
    }
}