qzy 8 сар өмнө
parent
commit
b4d424965f

+ 3 - 0
src/main/java/com/gzlh/device/plc/service/PLCService.java

@@ -99,6 +99,9 @@ public class PLCService {
                 CommandBO commandBO = JSONUtil.toBean(data, CommandBO.class);
                 LedOptions options = new LedOptions().setLine("04").setShowType("00");
                 int code = jsonObject.getInt("code");
+                if (code == 200) {
+                    eventBus.startEvent(ModuleEnum.PLC_MODULE.getModuleEn() + "." + PLCEvent.RAILING_RISE);
+                }
                 options.setColor(code == 200 ? "02" : "01");
                 SystemObject.ledFactory.handler(SysConfig.serialSetting.getLed().getBrand())
                         .sendMsg(commandBO.getCommand().getExtra(), options);