Przeglądaj źródła

修改到docker外运行环境

tags/v1.0.0^2
林万龙 3 lat temu
rodzic
commit
f518436b96
2 zmienionych plików z 8 dodań i 8 usunięć
  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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -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");


Ładowanie…
Anuluj
Zapisz