#
zy
2025-07-16 f194cac6c34a6c8748e4ca577e723b97e0baa24e
src/main/java/com/zy/core/thread/fake/FakeNyShuttleThread.java
@@ -71,6 +71,10 @@
    }
    private void acceptorThread() {
        if(!enableFake){
            return;
        }
        Thread acceptorThread = new Thread(() -> {
            log.info("{}:acceptorThread is start");
            try {
@@ -152,6 +156,10 @@
    }
    private void fakeCommandThread() {
        if(!enableFake){
            return;
        }
        Thread fakeCommandThread = new Thread(() -> {
            while (true) {
                try {
@@ -175,6 +183,10 @@
    }
    private synchronized void initFakeDeviceServer(FakeDeviceUtils fakeDeviceUtils) {
        if(!enableFake){
            return;
        }
        List<DeviceConfig> deviceConfigs = fakeDeviceUtils.getFakeDeviceConfig();
        for (DeviceConfig device : deviceConfigs) {
            if (!device.getDeviceType().equals(String.valueOf(SlaveType.Shuttle))) {
@@ -244,6 +256,7 @@
        fakeCommandMap.remove(key);
        new Thread(() -> {
            try {
                log.info("Fake Shuttle Command Running: {}", JSON.toJSONString(command));
                JSONObject fakeStatus = fakeStatusMap.get(key);
                String commandType = command.getString("commandType");
                if (commandType == null) {