From 575b2a21b28d04cce42b8294846cf41566a062fe Mon Sep 17 00:00:00 2001 From: lau572 <1010031226@qq.com> Date: Thu, 24 Oct 2024 09:26:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BE=B9=E5=9D=A1=E7=9B=91=E6=B5=8B=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E6=8E=A5=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/zc/business/controller/SideSlopeController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zc-business/src/main/java/com/zc/business/controller/SideSlopeController.java b/zc-business/src/main/java/com/zc/business/controller/SideSlopeController.java index 08cd4995..2b0b5697 100644 --- a/zc-business/src/main/java/com/zc/business/controller/SideSlopeController.java +++ b/zc-business/src/main/java/com/zc/business/controller/SideSlopeController.java @@ -109,11 +109,11 @@ public class SideSlopeController extends BaseController { String timeStr = simpleDateFormat.format(warningTime); String direction = jsonObject.getString("direction").equals("1") ? "菏泽方向" : "济南方向"; String warningLevel = ""; - if (jsonObject.getString("direction").equals("1")){ + if (jsonObject.getString("warningLevel").equals("1")){ warningLevel = "黄色预警"; - } else if (jsonObject.getString("direction").equals("2")){ + } else if (jsonObject.getString("warningLevel").equals("2")){ warningLevel = "橙色预警"; - } else if (jsonObject.getString("direction").equals("3")){ + } else if (jsonObject.getString("warningLevel").equals("3")){ warningLevel = "红色预警"; } JSONObject warningValueInfo = jsonObject.getJSONObject("warningValueInfo");