rev:急停修改

This commit is contained in:
2024-12-17 11:26:17 +08:00
parent fa457198d9
commit 05e59e9a8f

View File

@@ -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);