diff --git a/src/main/java/com/zilber/boot/dahua/controller/DahuaController.java b/src/main/java/com/zilber/boot/dahua/controller/DahuaController.java index 8c49f68..fa803fb 100644 --- a/src/main/java/com/zilber/boot/dahua/controller/DahuaController.java +++ b/src/main/java/com/zilber/boot/dahua/controller/DahuaController.java @@ -111,7 +111,7 @@ public class DahuaController { */ @ApiOperation(value = "设备分页查询",notes = "设备分页查询") @PostMapping("/brm/getDevicePage") - public DevicePageResponse getDevicePage(DevicePageRequest devicePageRequest){ + public DevicePageResponse getDevicePage(@RequestBody DevicePageRequest devicePageRequest){ OauthConfigUserPwdInfo config = OauthConfigUtil.getOauthConfig(); DevicePageResponse response=null; try { @@ -135,13 +135,13 @@ public class DahuaController { */ @ApiOperation(value = " rtsp实时预览",notes = " rtsp实时预览") @PostMapping("/video/getRtspUrl") - public RtspUrlResponse getRtspUrl(RtspUrlRequest rtspUrlRequest){ + public RtspUrlResponse getRtspUrl(@RequestBody RtspUrlRequest rtspUrlRequest){ RtspUrlResponse response=null; OauthConfigUserPwdInfo config = OauthConfigUtil.getOauthConfig(); try { //log.info("RealTimePreviewDemo,getRtspUrl,request:{}", JSONUtil.toJsonStr(rtspUrlRequest)); response = HttpUtils.executeJson("/evo-apigw/admin/API/MTS/Video/StartVideo", rtspUrlRequest,null, Method.POST , config, RtspUrlResponse.class); - //log.info("RealTimePreviewDemo,getRtspUrl,response:{}", JSONUtil.toJsonStr(response)); + log.info("RealTimePreviewDemo,getRtspUrl,response:{}", JSONUtil.toJsonStr(response)); } catch (ClientException e) { log.error(e.getErrMsg(), e); }