Просмотр исходного кода

修改到docker外运行环境

tags/v1.0.0^2
林万龙 3 лет назад
Родитель
Сommit
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");


Загрузка…
Отмена
Сохранить