|
|
@@ -108,12 +108,12 @@ public class NettyServerHandler extends ChannelInboundHandlerAdapter { |
|
|
|
String ipAddress = channel.remoteAddress().toString(); |
|
|
|
//String message = " 接收到消息:{0}, 客户端IP:{1}"; |
|
|
|
log.info("接收到消息:" + msg + ",客户端IP:" + ipAddress); |
|
|
|
if (nettyServerHandler.positionConfig != null) { |
|
|
|
log.info("config info is : " + nettyServerHandler.positionConfig.getCenterProvinceFilePath() + nettyServerHandler.positionConfig.getCenterProvince() + nettyServerHandler.positionConfig.getIpPositionRequestPath() + |
|
|
|
nettyServerHandler.positionConfig.getIpPositionRequestKey()); |
|
|
|
} else { |
|
|
|
log.info("positionConfig info is null!!!!!!!!!!!!!! "); |
|
|
|
} |
|
|
|
// if (nettyServerHandler.positionConfig != null) { |
|
|
|
// log.info("config info is : " + nettyServerHandler.positionConfig.getCenterProvinceFilePath() + nettyServerHandler.positionConfig.getCenterProvince() + nettyServerHandler.positionConfig.getIpPositionRequestPath() + |
|
|
|
// nettyServerHandler.positionConfig.getIpPositionRequestKey()); |
|
|
|
// } else { |
|
|
|
// log.info("positionConfig info is null!!!!!!!!!!!!!! "); |
|
|
|
// } |
|
|
|
|
|
|
|
String channelAns = ""; |
|
|
|
// 返回时间指令 |
|
|
@@ -125,7 +125,7 @@ public class NettyServerHandler extends ChannelInboundHandlerAdapter { |
|
|
|
if (AST_TIME_CMD.equals(msg)) { |
|
|
|
// 初始时间辅助输入; |
|
|
|
channelAns = nettyServerHandler.dipperTimeAsyncTaskService.pushAstTime(); |
|
|
|
log.info("返回时间:" + channelAns); |
|
|
|
// log.info("返回时间:" + channelAns); |
|
|
|
} |
|
|
|
// 发送SDBP-AST-POS获取辅助位置信息 |
|
|
|
// if (Integer.parseInt(posAsycServerPort) == channel.localAddress().getPort()) { |
|
|
|