|
@@ -141,8 +141,13 @@ public class YiTongGpsServerHandler extends HexBinaryAcceptanceHandlerAdapter {
|
|
|
|
|
|
|
|
|
|
|
|
- boolean isInitial = (LOGIN_MSG == msgType);
|
|
|
- sendOriginalMsg(data, deviceId,isInitial,3);
|
|
|
+ if (deviceId == null) {
|
|
|
+ deviceId = channelDeviceMap.get(channel);
|
|
|
+ }
|
|
|
+ if (deviceId != null) {
|
|
|
+ boolean isInitial = (LOGIN_MSG == msgType);
|
|
|
+ sendOriginalMsg(data, deviceId,isInitial,3);
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|