Commit 381e07bf authored by 赵啸非's avatar 赵啸非

添加设备告警

parent 84e5b6db
......@@ -41,6 +41,8 @@ public class SendTask implements Runnable {
DeviceEntity deviceEntity = new DeviceEntity();
deviceEntity.setId(deviceId);
headers.put(HEADER_CONTENT_TYPE, "application/json");
log.info("sendUrl:{} \n sendContent:{}", sendUrl,content);
String resp = HttpUtil.doPost(sendUrl, headers, content);
ApiResp<DeviceResp> apiResp = JSON.parseObject(resp, new TypeReference<ApiResp<DeviceResp>>(){});
if (apiResp.getCode() == 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment