|
|
|
@ -113,7 +113,26 @@ public class IvsControlController { |
|
|
|
ivsPresetVo.getCameraCode()); |
|
|
|
ivsPresetVo.setUUID(uuid); |
|
|
|
return ivsResourceRetryableDelegate.gotoSnapshotPresetExRetryable(version, ivsPresetVo); |
|
|
|
} else { |
|
|
|
} else if (command.equals("correctionSet")) { |
|
|
|
JSONObject ptzPresetInfo = new JSONObject(); |
|
|
|
ptzPresetInfo.put("presetIndex", Integer.parseInt(ivsPresetVo.getPreset())); |
|
|
|
ptzPresetInfo.put("presetName", ivsPresetVo.getName()); |
|
|
|
|
|
|
|
JSONObject paramJsonPreSet = new JSONObject(); |
|
|
|
paramJsonPreSet.put("cameraCode", ivsPresetVo.getCode()); |
|
|
|
paramJsonPreSet.put("ptzPresetInfo", ptzPresetInfo); |
|
|
|
log.info("PRESET_EX CORRECTION_SET cameraCode: {}, preset: {}, name: {}, paramBody: {}", |
|
|
|
ivsPresetVo.getCameraCode(), |
|
|
|
ivsPresetVo.getPreset(), |
|
|
|
ivsPresetVo.getName(), |
|
|
|
paramJsonPreSet.toJSONString()); |
|
|
|
IvsPresetView ivsPresetView = ivsCommonService.postJson(ivsResourceRetryableDelegate.getLabel(), |
|
|
|
paramJsonPreSet, |
|
|
|
IvsConst.URI_PRESET_SET, |
|
|
|
IvsPresetView.class); |
|
|
|
log.info("PRESET_EX CORRECTION_SET RES: {}", ivsPresetView); |
|
|
|
return Response.ok(ivsPresetView); |
|
|
|
}else { |
|
|
|
return Response.ok(); |
|
|
|
} |
|
|
|
} |
|
|
|
|