|
|
|
@ -62,7 +62,12 @@ public class VideoController extends BaseController { |
|
|
|
realTimeModel.setSerial(video2NvrComponent.toNvrCode(realTimeModel.getPatrolDeviceCode())); |
|
|
|
String params = JsonUtil.json2Str(JSONObject.parseObject(JSONObject.toJSONString(realTimeModel))); |
|
|
|
log.info("[VIDEO] realtime params:{}", params); |
|
|
|
String result = HttpClientUtils.get(this.deviceUrl + AccessApiConstant.REALTIME, params); |
|
|
|
String result = null; |
|
|
|
try { |
|
|
|
result = HttpClientUtils.get(this.deviceUrl + AccessApiConstant.REALTIME, params); |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("开启视频监控失败", e); |
|
|
|
} |
|
|
|
return AjaxResult.success(JSONObject.parseObject(result)); |
|
|
|
} |
|
|
|
} |