|
@ -109,11 +109,11 @@ public class SideSlopeController extends BaseController { |
|
|
String timeStr = simpleDateFormat.format(warningTime); |
|
|
String timeStr = simpleDateFormat.format(warningTime); |
|
|
String direction = jsonObject.getString("direction").equals("1") ? "菏泽方向" : "济南方向"; |
|
|
String direction = jsonObject.getString("direction").equals("1") ? "菏泽方向" : "济南方向"; |
|
|
String warningLevel = ""; |
|
|
String warningLevel = ""; |
|
|
if (jsonObject.getString("direction").equals("1")){ |
|
|
if (jsonObject.getString("warningLevel").equals("1")){ |
|
|
warningLevel = "黄色预警"; |
|
|
warningLevel = "黄色预警"; |
|
|
} else if (jsonObject.getString("direction").equals("2")){ |
|
|
} else if (jsonObject.getString("warningLevel").equals("2")){ |
|
|
warningLevel = "橙色预警"; |
|
|
warningLevel = "橙色预警"; |
|
|
} else if (jsonObject.getString("direction").equals("3")){ |
|
|
} else if (jsonObject.getString("warningLevel").equals("3")){ |
|
|
warningLevel = "红色预警"; |
|
|
warningLevel = "红色预警"; |
|
|
} |
|
|
} |
|
|
JSONObject warningValueInfo = jsonObject.getJSONObject("warningValueInfo"); |
|
|
JSONObject warningValueInfo = jsonObject.getJSONObject("warningValueInfo"); |
|
|