Commit b48460dd by 杨林龙

解决设备状态显示问题

1 parent 10f20a12
......@@ -91,7 +91,7 @@ public class DeviceUtils {
return;
}
//否则 在6分钟内并且有速度 则为行驶中
if (deviceLogin.getDeviceStayStatus() == 2 && deviceLogin.getSpeed() != null && deviceLogin.getSpeed() > 0) {
if (deviceLogin.getDeviceStayStatus() != null && deviceLogin.getDeviceStayStatus() == 2 && deviceLogin.getSpeed() != null && deviceLogin.getSpeed() > 0) {
//行驶状态
deviceStatus.setStatus(ConstantsDevice.DEVICE_STATUS_DRIVING);
return;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!