From f518436b964e801f39f3822e929f37c3468b86f0 Mon Sep 17 00:00:00 2001 From: linwl <304115325@qq.com> Date: Tue, 19 Jan 2021 12:23:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=B0docker=E5=A4=96?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dipperposition/handler/NettyServerHandler.java | 14 +++++++------- .../impl/DipperAstPosAsyncTaskServiceImpl.java | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/telpo/dipperposition/handler/NettyServerHandler.java b/src/main/java/com/telpo/dipperposition/handler/NettyServerHandler.java index 3d46275..a0358ec 100644 --- a/src/main/java/com/telpo/dipperposition/handler/NettyServerHandler.java +++ b/src/main/java/com/telpo/dipperposition/handler/NettyServerHandler.java @@ -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()) { diff --git a/src/main/java/com/telpo/dipperposition/service/impl/DipperAstPosAsyncTaskServiceImpl.java b/src/main/java/com/telpo/dipperposition/service/impl/DipperAstPosAsyncTaskServiceImpl.java index fe3f30e..6af9ce3 100644 --- a/src/main/java/com/telpo/dipperposition/service/impl/DipperAstPosAsyncTaskServiceImpl.java +++ b/src/main/java/com/telpo/dipperposition/service/impl/DipperAstPosAsyncTaskServiceImpl.java @@ -54,7 +54,7 @@ public class DipperAstPosAsyncTaskServiceImpl implements IDipperAstPosAsyncTaskS String centerProvinceLonAndAlt = ""; String appCsvPath = ""; try { - appCsvPath = ResourceUtils.getFile("resources"+this.centerProvinceFilePath).getPath(); + appCsvPath = ResourceUtils.getFile("resources"+this.centerProvinceFilePath).getAbsolutePath(); log.debug(appCsvPath); } catch (Exception e) { log.debug("cannot find path");