@@ -52,14 +52,14 @@ public class DipperAstPosAsyncTaskServiceImpl implements IDipperAstPosAsyncTaskS | |||
// 不存在说明token是已过期了 | |||
String centerProvinceName = ""; | |||
String centerProvinceLonAndAlt = ""; | |||
String appResPath = ""; | |||
String appCsvPath = ""; | |||
try { | |||
appResPath = ResourceUtils.getURL("resources:").getPath(); | |||
log.debug(appResPath); | |||
appCsvPath = ResourceUtils.getFile("resources"+this.centerProvinceFilePath).getPath(); | |||
log.debug(appCsvPath); | |||
} catch (Exception e) { | |||
log.debug("cannot find path"); | |||
} | |||
List<String> centerAddressSets = CSVUtil.readCSV(appResPath + this.centerProvinceFilePath); | |||
List<String> centerAddressSets = CSVUtil.readCSV(appCsvPath); | |||
for (String centerAddressSet:centerAddressSets) { | |||
String[] centerAddressSetArray = centerAddressSet.split(","); | |||
if (centerAddressSetArray.length < 3) { | |||
@@ -23,7 +23,6 @@ import java.time.LocalDateTime; | |||
public class DipperAstTimeAsyncTaskServiceImpl implements IDipperAstTimeAsyncTaskService { | |||
@Override | |||
@Async("asyncServiceExecutor") | |||
public String pushAstTime() { | |||
// 创建Socket客户端实例; | |||
@@ -32,6 +32,7 @@ public class DipperDataAsyncTaskServiceImpl implements IDipperDataAsyncTaskServi | |||
@Override | |||
@Async("asyncServiceExecutor") | |||
public void pullAstEPH() { | |||
// (1) 发送bds获取星历数据 | |||
String dipperData = pullEPHFromDipper(); | |||
@@ -46,7 +47,6 @@ public class DipperDataAsyncTaskServiceImpl implements IDipperDataAsyncTaskServi | |||
} | |||
} | |||
private String pullEPHFromDipper() { | |||
// 创建Socket客户端实例; | |||
@@ -64,7 +64,6 @@ public class DipperDataAsyncTaskServiceImpl implements IDipperDataAsyncTaskServi | |||
} | |||
@Override | |||
@Async("asyncServiceExecutor") | |||
public String getAstEPH(){ | |||
return (String)redisUtil.get(DIPPER_DATA_KEY); | |||
} | |||