Commit 704b998d authored by 赵啸非's avatar 赵啸非

添加设备告警

parent 381e07bf
......@@ -42,7 +42,7 @@ public class SendTask implements Runnable {
deviceEntity.setId(deviceId);
headers.put(HEADER_CONTENT_TYPE, "application/json");
log.info("sendUrl:{} \n sendContent:{}", sendUrl,content);
log.info("\n 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