|
|
@@ -50,9 +50,6 @@ public class DipperDataAsyncTaskServiceImpl implements IDipperDataAsyncTaskServi |
|
|
|
log.error("获取星历数据错误,取不到星历数据。"); |
|
|
|
} else { |
|
|
|
// 保存到DB或者缓存 |
|
|
|
if (redisUtil == null) { |
|
|
|
redisUtil = new RedisUtil(); |
|
|
|
} |
|
|
|
redisUtil.set(DIPPER_DATA_KEY,dipperData); |
|
|
|
} |
|
|
|
} |
|
|
@@ -77,9 +74,6 @@ public class DipperDataAsyncTaskServiceImpl implements IDipperDataAsyncTaskServi |
|
|
|
@Override |
|
|
|
@Async("asyncServiceExecutor") |
|
|
|
public String getAstEPH(){ |
|
|
|
if (redisUtil == null) { |
|
|
|
redisUtil = new RedisUtil(); |
|
|
|
} |
|
|
|
return (String)redisUtil.get(DIPPER_DATA_KEY); |
|
|
|
} |
|
|
|
} |