Browse Source

修改到docker外运行环境

tags/v1.0.0^2
林万龙 3 years ago
parent
commit
24c3e28bba
1 changed files with 0 additions and 6 deletions
  1. +0
    -6
      src/main/java/com/telpo/dipperposition/service/impl/DipperDataAsyncTaskServiceImpl.java

+ 0
- 6
src/main/java/com/telpo/dipperposition/service/impl/DipperDataAsyncTaskServiceImpl.java View File

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

Loading…
Cancel
Save