Commit d4204c78 authored by duanruiming's avatar duanruiming

[update] 行人灯添加绿闪

parent 6472bbf3
...@@ -169,7 +169,11 @@ public class SignalStatusTask { ...@@ -169,7 +169,11 @@ public class SignalStatusTask {
String color = turnEntry.getValue(); String color = turnEntry.getValue();
LightsStatusVO2.TurnInfo turnInfo = new LightsStatusVO2.TurnInfo(); LightsStatusVO2.TurnInfo turnInfo = new LightsStatusVO2.TurnInfo();
turnInfo.setTurn(String.valueOf(turn)); turnInfo.setTurn(String.valueOf(turn));
turnInfo.setColor(color); if (Objects.equals(turn, 20) && Objects.equals(color, "yellow")) { //行人黄灯时。绿闪
turnInfo.setColor("greenFlash");
} else {
turnInfo.setColor(color);
}
String key = dir.concat(Constants.SEPARATOR_UNDER_LINE).concat(String.valueOf(turn)); String key = dir.concat(Constants.SEPARATOR_UNDER_LINE).concat(String.valueOf(turn));
Map<Integer, Integer> turnMap = (Map<Integer, Integer>) phaseMap.get(dir); Map<Integer, Integer> turnMap = (Map<Integer, Integer>) phaseMap.get(dir);
if (!turnMap.isEmpty()) { if (!turnMap.isEmpty()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment