From 50bd48b0e1a24577b295827f87507db97b1e13ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B0=8F=E4=BA=91?= Date: Fri, 30 Jan 2026 14:52:28 +0800 Subject: [PATCH] xx --- .../java/com/ruoyi/device/domain/impl/WeatherDomainImpl.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/com/ruoyi/device/domain/impl/WeatherDomainImpl.java b/src/main/java/com/ruoyi/device/domain/impl/WeatherDomainImpl.java index 39a4d89..5871927 100644 --- a/src/main/java/com/ruoyi/device/domain/impl/WeatherDomainImpl.java +++ b/src/main/java/com/ruoyi/device/domain/impl/WeatherDomainImpl.java @@ -40,15 +40,10 @@ public class WeatherDomainImpl implements IWeatherDomain { try { HttpResponse response = HttpUtils.doPost(host, path, method, headers, querys, bodys); - String json = EntityUtils.toString(response.getEntity()); - System.out.println(json); - // 将JSON字符串转换为对象 WeatherResponse weatherResponse = JSON.parseObject(json, WeatherResponse.class); - // 降雨量(枚举值:0-无雨,1-小雨,2-中雨,3-大雨) - // 使用转换后的对象 if (weatherResponse != null && weatherResponse.getCode() == 0) { //转换风速:将风力等级转换为风速中间值