This commit is contained in:
2024-03-01 09:09:04 +08:00

View File

@@ -72,7 +72,12 @@ public class CameraService {
*/
public void receiveIdentifyResults(JSONObject jsonObject) throws InterruptedException {
// 区分入场和出场
Integer parking_state = jsonObject.getJSONObject("parking").getInteger("parking_state");
Integer parking_state = 0;
try {
parking_state = jsonObject.getJSONObject("parking").getInteger("parking_state");
}catch (Exception e) {
logger.info("相机发送系统 alarmInfo:{}", jsonObject.toJSONString());
}
if (parking_state == Constants.one) {
// 入场
String parkingState = "ENTRY";