Commit 5e94fda2df8fd0751086d43c6030fd6d2f24d98e
1 parent
36f5cc2c
update..
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/com/bsth/entity/GpsEntity.java
| ... | ... | @@ -81,9 +81,9 @@ public class GpsEntity { |
| 81 | 81 | public static GpsEntity getInstance(BasicInfo basicInfo, int version, int source){ |
| 82 | 82 | if(StringUtils.isBlank(basicInfo.getDeviceId())) |
| 83 | 83 | return null; |
| 84 | - //接受 10 分钟内的补传数据 | |
| 84 | + | |
| 85 | 85 | byte cacheData = getCacheState(basicInfo.getServiceState()); |
| 86 | - if(cacheData == 1 && Math.abs(basicInfo.getTimestamp() - System.currentTimeMillis()) > 1000 * 60 * 10) | |
| 86 | + if(cacheData == 1) | |
| 87 | 87 | return null; |
| 88 | 88 | |
| 89 | 89 | GpsEntity gps = new GpsEntity(); | ... | ... |