云台控制接口修改
parent
e8e8ac1797
commit
c2f25411bd
|
|
@ -127,10 +127,7 @@ public class AttCctvBaseController {
|
||||||
String ret = null;
|
String ret = null;
|
||||||
try {
|
try {
|
||||||
Response resp = client.newCall(new Request.Builder().url(api).build()).execute();
|
Response resp = client.newCall(new Request.Builder().url(api).build()).execute();
|
||||||
String respStr = resp.body().string();
|
ret = resp.body().string();
|
||||||
ObjectMapper om = new ObjectMapper();
|
|
||||||
Map map = om.readValue(respStr, Map.class);
|
|
||||||
ret = map.get("data").toString();
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue