| | |
| | | if (gbStream.isStatus()) { |
| | | if (gpsMsgInfo != null) { |
| | | // 发送GPS消息 |
| | | sipCommanderForPlatform.sendMobilePosition(parentPlatform, gpsMsgInfo, subscribe); |
| | | sipCommanderForPlatform.sendNotifyMobilePosition(parentPlatform, gpsMsgInfo, subscribe); |
| | | }else { |
| | | // 没有在redis找到新的消息就使用数据库的消息 |
| | | gpsMsgInfo = new GPSMsgInfo(); |
| | |
| | | gpsMsgInfo.setLat(gbStream.getLongitude()); |
| | | gpsMsgInfo.setLng(gbStream.getLongitude()); |
| | | // 发送GPS消息 |
| | | sipCommanderForPlatform.sendMobilePosition(parentPlatform, gpsMsgInfo, subscribe); |
| | | sipCommanderForPlatform.sendNotifyMobilePosition(parentPlatform, gpsMsgInfo, subscribe); |
| | | } |
| | | } |
| | | |