优化代码
This commit is contained in:
parent
29a7eb579c
commit
6d59774cfa
@ -15,6 +15,7 @@ public class GetVideoTool {
|
|||||||
|
|
||||||
public static String getVideo(String alarmCode) throws JsonProcessingException {
|
public static String getVideo(String alarmCode) throws JsonProcessingException {
|
||||||
String token = GetTokenTool.getToken();
|
String token = GetTokenTool.getToken();
|
||||||
|
// 查询报警联动录像
|
||||||
String url = "https://111.26.161.203:443/admin/API/SS/Record/GetAlarmRecords?token=" + token;
|
String url = "https://111.26.161.203:443/admin/API/SS/Record/GetAlarmRecords?token=" + token;
|
||||||
JSONObject jsonObject = new JSONObject();
|
JSONObject jsonObject = new JSONObject();
|
||||||
jsonObject.put("clientType","WINPC_V1");
|
jsonObject.put("clientType","WINPC_V1");
|
||||||
@ -32,6 +33,7 @@ public class GetVideoTool {
|
|||||||
JsonNode data = jsonNode.get("data");
|
JsonNode data = jsonNode.get("data");
|
||||||
JsonNode records = data.get("records").get(0);
|
JsonNode records = data.get("records").get(0);
|
||||||
|
|
||||||
|
// 录像回放下载
|
||||||
String urlVideo = "/admin/API/SS/Playback/StartPlaybackByFile?token=" + token;
|
String urlVideo = "/admin/API/SS/Playback/StartPlaybackByFile?token=" + token;
|
||||||
JSONObject jsonObject2 = new JSONObject();
|
JSONObject jsonObject2 = new JSONObject();
|
||||||
jsonObject2.put("ssId",records.get("ssId").asText());
|
jsonObject2.put("ssId",records.get("ssId").asText());
|
||||||
|
Loading…
Reference in New Issue
Block a user