Junjie
2026-04-18 4117673c66366c57916064b7cfd5a4c0fa25bd57
src/main/java/com/zy/core/ServerBootstrap.java
@@ -25,6 +25,8 @@
@Component
public class ServerBootstrap {
    private static boolean initThread = false;
    @Autowired
    private MainProcess mainProcess;
    @Autowired
@@ -34,6 +36,9 @@
    @Async
    public void init() throws InterruptedException {
        if (initThread) {
            return;
        }
        News.info("核心控制层开始初始化...............................................");
        clearStartupRuntimeLocks();
        // 初始化消息队列
@@ -42,6 +47,7 @@
        initThread();
        // 开始主流程进程
        mainProcess.start();
        initThread = true;
        News.info("核心控制层已启动...............................................");
    }
@@ -146,8 +152,6 @@
                    thread = new ZyStationThread(deviceConfig, redisUtil);
                } else if (deviceConfig.getThreadImpl().equals("ZyStationV3Thread")) {
                    thread = new ZyStationV3Thread(deviceConfig, redisUtil);
                } else if (deviceConfig.getThreadImpl().equals("ZyStationV4Thread")) {
                    thread = new ZyStationV4Thread(deviceConfig, redisUtil);
                } else if (deviceConfig.getThreadImpl().equals("ZyStationV5Thread")) {
                    thread = new ZyStationV5Thread(deviceConfig, redisUtil);
                } else {