From a251876c40e679f797d5925ae8ffa82cd1b3e561 Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Tue, 25 Aug 2020 16:50:28 +0800
Subject: [PATCH] update

---
 src/main/java/com/moral/service/impl/RealWeatherServiceImpl.java |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/moral/service/impl/RealWeatherServiceImpl.java b/src/main/java/com/moral/service/impl/RealWeatherServiceImpl.java
index d87e0b7..e483ba2 100644
--- a/src/main/java/com/moral/service/impl/RealWeatherServiceImpl.java
+++ b/src/main/java/com/moral/service/impl/RealWeatherServiceImpl.java
@@ -138,6 +138,20 @@
             Map<String, Object> jsonMap = (Map<String, Object>) map.get("data");
             jsonMap.remove("obsTime");
             jsonMap.remove("icon");
+            String text = jsonMap.get("text").toString();
+            if(text.equals("���")){
+                jsonMap.put("condition","100");
+            }else if(text.equals("������")){
+                jsonMap.put("condition","80");
+            }else if(text.equals("���")){
+                jsonMap.put("condition","60");
+            }else if(text.equals("���������")){
+                jsonMap.put("condition","40");
+            }else if(text.equals("������")){
+                jsonMap.put("condition","20");
+            }else if(text.equals("���")){
+                jsonMap.put("condition","0");
+            }
             resultMap.put("json",JSONObject.toJSONString(jsonMap));
             resultList.add(resultMap);
         }

--
Gitblit v1.8.0