diff --git a/acs2/nladmin-system/src/main/java/org/nl/acs/device_driver/lamp_three_color/LampThreecolorDeviceDriver.java b/acs2/nladmin-system/src/main/java/org/nl/acs/device_driver/lamp_three_color/LampThreecolorDeviceDriver.java index 888aff9..896ed56 100644 --- a/acs2/nladmin-system/src/main/java/org/nl/acs/device_driver/lamp_three_color/LampThreecolorDeviceDriver.java +++ b/acs2/nladmin-system/src/main/java/org/nl/acs/device_driver/lamp_three_color/LampThreecolorDeviceDriver.java @@ -1,5 +1,6 @@ package org.nl.acs.device_driver.lamp_three_color; +import cn.hutool.core.util.ObjectUtil; import com.alibaba.fastjson.JSONObject; import lombok.Getter; import lombok.RequiredArgsConstructor; @@ -142,9 +143,8 @@ public class LampThreecolorDeviceDriver extends AbstractOpcDeviceDriver implemen } } - private void executeLogicBefore() { - if (error == 1) { + if (error == 1 && ObjectUtil.isNotEmpty(car_no)) { String[] carArr = {car_no}; JSONObject json = new JSONObject(); json.put("vehicles", carArr);