diff --git a/iot-modules/iot-box-websocket-api/src/main/java/com/qiuguo/iot/box/websocket/api/handler/BaseWebSocketProcess.java b/iot-modules/iot-box-websocket-api/src/main/java/com/qiuguo/iot/box/websocket/api/handler/BaseWebSocketProcess.java index 0c03dc6..469c2de 100644 --- a/iot-modules/iot-box-websocket-api/src/main/java/com/qiuguo/iot/box/websocket/api/handler/BaseWebSocketProcess.java +++ b/iot-modules/iot-box-websocket-api/src/main/java/com/qiuguo/iot/box/websocket/api/handler/BaseWebSocketProcess.java @@ -344,6 +344,7 @@ public class BaseWebSocketProcess { + item.getNarrative().replace("每 km / h", "千米每小时") + ",空气质量" + item.getAir_level() + ",湿度" + item.getHumidity() + ",最低气温" + item.getTem2() + "°C"; + msg = msg.replace(" ", ""); if(this instanceof BoxWebSocketHandler){ WeatherResp weatherResp = new WeatherResp(); weatherResp.setWeatherLocal(t.getCity());