增加缓存地图数据异常处理

This commit is contained in:
joylink_zhangsai 2022-12-23 15:02:20 +08:00
parent 2d78ed3d0d
commit 1868fe20b6

View File

@ -118,7 +118,11 @@ public class MapService implements IMapService, ApplicationRunner {
//缓存所有地图数据
log.info("开始缓存地图数据");
for (MapVO mapVO : listOnline()) {
try {
getMapDetail(mapVO.getId());
} catch (Exception e) {
log.error(String.format("[id:%s]的地图缓存失败", mapVO.getId()), e);
}
}
log.info("缓存地图数据结束");
}