Browse Source

修改到docker外运行环境

tags/v1.0.0^2
林万龙 3 years ago
parent
commit
69b6671569
2 changed files with 9 additions and 9 deletions
  1. +8
    -8
      src/main/java/com/telpo/dipperposition/controller/DipperDataAsyncTaskController.java
  2. +1
    -1
      src/main/java/com/telpo/dipperposition/handler/NettyServerHandler.java

+ 8
- 8
src/main/java/com/telpo/dipperposition/controller/DipperDataAsyncTaskController.java View File

@@ -37,14 +37,14 @@ public class DipperDataAsyncTaskController {
public void pullAstEPH() {
dipperDataAsyncTaskService.pullAstEPH();
}
/*
* 获取星历数据
*/
public String getAstEPH() {
log.info("DipperDataAsyncTaskController serverAddr = " + serverAddr);
return dipperDataAsyncTaskService.getAstEPH();
}
//
// /*
// * 获取星历数据
// */
// public String getAstEPH() {
// log.info("DipperDataAsyncTaskController serverAddr = " + serverAddr);
// return dipperDataAsyncTaskService.getAstEPH();
// }


@RequestMapping("/getPos")


+ 1
- 1
src/main/java/com/telpo/dipperposition/handler/NettyServerHandler.java View File

@@ -156,7 +156,7 @@ public class NettyServerHandler extends ChannelInboundHandlerAdapter {
// if (dipperDataAsyncTaskService == null) {
// dipperDataAsyncTaskService = new DipperDataAsyncTaskServiceImpl();
// }
channelAns = dipperDataAsyncTaskController.getAstEPH();
// channelAns = dipperDataAsyncTaskController.getAstEPH();
}

log.info(channelAns);


Loading…
Cancel
Save