Commit b4cadbb1 by 111-PC\111

[+]红外设备代码提交

1 parent 9737b110
...@@ -28,4 +28,15 @@ public class ResponseBody { ...@@ -28,4 +28,15 @@ public class ResponseBody {
private String message; private String message;
private String msg; private String msg;
@Override
public String toString() {
return "ResponseBody{" +
"success=" + success +
", result='" + result + '\'' +
", code=" + code +
", message='" + message + '\'' +
", msg='" + msg + '\'' +
'}';
}
} }
...@@ -75,6 +75,7 @@ public class SendRequestService { ...@@ -75,6 +75,7 @@ public class SendRequestService {
try { try {
JSONObject jsonObject = HttpUtil.sendGet(requesturl, null, headerParams); JSONObject jsonObject = HttpUtil.sendGet(requesturl, null, headerParams);
responseBody = JSON.toJavaObject(jsonObject, ResponseBody.class); responseBody = JSON.toJavaObject(jsonObject, ResponseBody.class);
log.info("请求涂鸦数据{}",responseBody);
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
log.info("请求用户信息接口异常,异常信息{}", e.getMessage()); log.info("请求用户信息接口异常,异常信息{}", e.getMessage());
...@@ -99,6 +100,7 @@ public class SendRequestService { ...@@ -99,6 +100,7 @@ public class SendRequestService {
try { try {
JSONObject jsonObject = HttpUtil.sendPut(requesturl, requestBody, headerParams); JSONObject jsonObject = HttpUtil.sendPut(requesturl, requestBody, headerParams);
responseBody = JSON.toJavaObject(jsonObject, ResponseBody.class); responseBody = JSON.toJavaObject(jsonObject, ResponseBody.class);
log.info("请求涂鸦数据{}",responseBody);
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
log.info("请求用户信息接口异常,异常信息{}", e.getMessage()); log.info("请求用户信息接口异常,异常信息{}", e.getMessage());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!