From 489f5cd5c046d207957a4689562dafd2ac7f8bd2 Mon Sep 17 00:00:00 2001 From: baishou <2710684311@qq.com> Date: Mon, 27 May 2019 17:46:36 +0800 Subject: [PATCH] 楼宇通话操作接口 --- springboot/src/main/java/com/sincre/springboot/controller/Yinshi/DeviceControl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/springboot/src/main/java/com/sincre/springboot/controller/Yinshi/DeviceControl.java b/springboot/src/main/java/com/sincre/springboot/controller/Yinshi/DeviceControl.java index a199f46..710a36f 100644 --- a/springboot/src/main/java/com/sincre/springboot/controller/Yinshi/DeviceControl.java +++ b/springboot/src/main/java/com/sincre/springboot/controller/Yinshi/DeviceControl.java @@ -43,7 +43,7 @@ public class DeviceControl { @ApiOperation(value = "该接口用于楼宇可视对讲设备通话操作") @ApiImplicitParams({ @ApiImplicitParam(name = "deviceSerial", value = "设备序列号", required = true), - @ApiImplicitParam(name = "type",value = "操作类型:2-接听,3-拒接, 4-响铃超时,5-挂断,6-被叫正在通话中",required = true) + @ApiImplicitParam(name = "type",value = "操作类型:2-接听,3-拒接, 4-响铃超时,5-挂断,6-被叫正在通话中",dataType = "Integer",required = true) }) @GetMapping("setDeviceCall") public ServerResponse setDeviceCall(@RequestParam String deviceSerial,@RequestParam Integer type) { @@ -52,6 +52,7 @@ public class DeviceControl { Map map = new HashMap<>(); map.put("accessToken", YinShiServiceConfig.AccessToken); map.put("deviceSerial", deviceSerial); + map.put("type",type); String result = ApiHelper.doPost(url, new HashMap(), map); YinShiResResult yinShiResResult = JSON.parseObject(result,YinShiResResult.class); -- libgit2 0.21.0