Commit 95dcb20168503acc4dfbd9a197258daaae558cc1
Merge branch 'master' of http://61.169.120.202:8888/wt11111111/gb32960_server
Showing
2 changed files
with
11 additions
and
35 deletions
.idea/jarRepositories.xml deleted
100644 → 0
| 1 | -<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | -<project version="4"> | |
| 3 | - <component name="RemoteRepositoriesConfiguration"> | |
| 4 | - <remote-repository> | |
| 5 | - <option name="id" value="public-snapshots" /> | |
| 6 | - <option name="name" value="public-snapshots" /> | |
| 7 | - <option name="url" value="http://104.224.181.229:8081/repository/maven-snapshots/" /> | |
| 8 | - </remote-repository> | |
| 9 | - <remote-repository> | |
| 10 | - <option name="id" value="central" /> | |
| 11 | - <option name="name" value="Central Repository" /> | |
| 12 | - <option name="url" value="http://104.224.181.229:8081/repository/maven-public" /> | |
| 13 | - </remote-repository> | |
| 14 | - <remote-repository> | |
| 15 | - <option name="id" value="central" /> | |
| 16 | - <option name="name" value="Maven Central repository" /> | |
| 17 | - <option name="url" value="https://repo1.maven.org/maven2" /> | |
| 18 | - </remote-repository> | |
| 19 | - <remote-repository> | |
| 20 | - <option name="id" value="jboss.community" /> | |
| 21 | - <option name="name" value="JBoss Community repository" /> | |
| 22 | - <option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" /> | |
| 23 | - </remote-repository> | |
| 24 | - <remote-repository> | |
| 25 | - <option name="id" value="central" /> | |
| 26 | - <option name="name" value="Central Repository" /> | |
| 27 | - <option name="url" value="https://maven.aliyun.com/repository/central" /> | |
| 28 | - </remote-repository> | |
| 29 | - <remote-repository> | |
| 30 | - <option name="id" value="public-snapshots" /> | |
| 31 | - <option name="name" value="public-snapshots" /> | |
| 32 | - <option name="url" value="http://public-snapshots" /> | |
| 33 | - </remote-repository> | |
| 34 | - </component> | |
| 35 | -</project> | |
| 36 | 0 | \ No newline at end of file |
src/main/java/com/bsth/entity/VehicleLocationData.java
| ... | ... | @@ -32,6 +32,17 @@ public class VehicleLocationData extends Data { |
| 32 | 32 | |
| 33 | 33 | |
| 34 | 34 | public VehicleLocationData(Message0205 message0205){ |
| 35 | + Byte infoTypeValue = message0205.getInfoType(); | |
| 36 | + this.infoType = (infoTypeValue == null || infoTypeValue == (byte) 0xFF) ? (byte) 0x05 : infoTypeValue; | |
| 37 | + | |
| 38 | + // 定位状态 | |
| 39 | + this.locationState = message0205.getLocationState(); | |
| 40 | + | |
| 41 | + // 经度 | |
| 42 | + this.lon = message0205.getLon(); | |
| 43 | + | |
| 44 | + // 纬度 | |
| 45 | + this.lat = message0205.getLat(); | |
| 35 | 46 | |
| 36 | 47 | |
| 37 | 48 | } | ... | ... |