天气播放去掉所有的空格

This commit is contained in:
wulin 2023-10-17 15:50:26 +08:00
parent 5b67105114
commit dd51f57dc8

View File

@ -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());