소스 검색

修改到docker外运行环境

tags/v1.0.0^2
林万龙 3 년 전
부모
커밋
f518436b96
2개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. +7
    -7
      src/main/java/com/telpo/dipperposition/handler/NettyServerHandler.java
  2. +1
    -1
      src/main/java/com/telpo/dipperposition/service/impl/DipperAstPosAsyncTaskServiceImpl.java

+ 7
- 7
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()) {


+ 1
- 1
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");


Loading…
취소
저장