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