This commit is contained in:
Lemon
2024-02-29 14:28:03 +08:00
parent f84f2ca883
commit 5cecd1fb88

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";