Commit 8fe84d60 authored by 李成龙's avatar 李成龙

修改:接入骏景视频平台视频数据增加日志。

parent b3311585
...@@ -96,11 +96,12 @@ public class BaseEnterpriseVideoServiceImpl extends BaseService<BaseEnterpriseVi ...@@ -96,11 +96,12 @@ public class BaseEnterpriseVideoServiceImpl extends BaseService<BaseEnterpriseVi
Map<String, Object> artemisInfo = initArtemisConfigAndPath(baseEnterpriseVideo, baseEnterpriseVideo.getUrl()); Map<String, Object> artemisInfo = initArtemisConfigAndPath(baseEnterpriseVideo, baseEnterpriseVideo.getUrl());
ArtemisConfig config = (ArtemisConfig) artemisInfo.get("config"); ArtemisConfig config = (ArtemisConfig) artemisInfo.get("config");
Map<String, String> path = (Map<String, String>) artemisInfo.get("path"); Map<String, String> path = (Map<String, String>) artemisInfo.get("path");
JSONObject param = JSONObject.parseObject(baseEnterpriseVideo.getChannelNo());// post请求Form表单参数 JSONObject param = JSONObject.parseObject(baseEnterpriseVideo.getChannelNo());// post请求Form表单参数
param.put("cameraIndexCode", video.getKey()); param.put("cameraIndexCode", video.getKey());
log.info("iSecureCenter视频对接平台摄像头预览url,config:{},path:{},param:{}", config, path, param);
String body = param.toJSONString(); String body = param.toJSONString();
String resultStr = ArtemisHttpUtil.doPostStringArtemis(config, path, body, null, null, "application/json", null); String resultStr = ArtemisHttpUtil.doPostStringArtemis(config, path, body, null, null, "application/json", null);
log.info("iSecureCenter视频对接平台摄像头预览url返回结果:{}", resultStr);
if (ValidationUtil.isEmpty(resultStr)) { if (ValidationUtil.isEmpty(resultStr)) {
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment