rev:急停修改
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package org.nl.acs.device_driver.lamp_three_color;
|
package org.nl.acs.device_driver.lamp_three_color;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
@@ -142,9 +143,8 @@ public class LampThreecolorDeviceDriver extends AbstractOpcDeviceDriver implemen
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void executeLogicBefore() {
|
private void executeLogicBefore() {
|
||||||
if (error == 1) {
|
if (error == 1 && ObjectUtil.isNotEmpty(car_no)) {
|
||||||
String[] carArr = {car_no};
|
String[] carArr = {car_no};
|
||||||
JSONObject json = new JSONObject();
|
JSONObject json = new JSONObject();
|
||||||
json.put("vehicles", carArr);
|
json.put("vehicles", carArr);
|
||||||
|
|||||||
Reference in New Issue
Block a user