Commit 842f050f authored by duanruiming's avatar duanruiming

[update] 优化红灯倒计时

parent e385c6ea
......@@ -144,15 +144,12 @@ public class HkLightsStatusServiceImpl implements HkLightsStatusService {
Integer red = phaseInfoPO.getRed();
Integer yellow = phaseInfoPO.getYellow();
Integer green = phaseLength - yellow - red;
if (2 != vehicleStatus) { // 2红灯
infoVo.setPhaseId(String.valueOf(phaseNo));
}
if (phaseInfoPO.getCountdown() <= phaseLength && !Objects.equals(phaseInfoPO.getRunTime(), phaseLength)) {
infoVo.setCyclePhaseCountDown(phaseInfoPO.getCountdown());
break;
}
}
......
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