查询历史录像

This commit is contained in:
shikong 2023-09-09 22:17:03 +08:00
parent 9d1da22aa0
commit b7b70fe42f

View File

@ -180,7 +180,7 @@ public class WvpService {
JsonResponse<QueryRecordResp> queryRecord = wvpProxyClient.queryRecord(token, deviceId, channelId, new QueryRecordReq(DateUtil.formatDateTime(startTime), DateUtil.formatDateTime(endTime)));
QueryRecordResp queryRecordData = queryRecord.getData();
if (queryRecordData == null) {
String reason = MessageFormat.format("通过 wvp 查询历史录像 失败 设备: {0}, 国标id: {1}, 通道: {2}", deviceCode, deviceId, channelId);
String reason = MessageFormat.format("通过 wvp 查询历史录像 失败 设备: {0}, 国标id: {1}, 通道: {2}, 错误信息: {3}", deviceCode, deviceId, channelId, queryRecord.getMsg());
log.error(reason);
log.error("查询历史录像 返回结果 => {}", queryRecord);
writeErrorToResponse(response, JsonResponse.error(reason));