feat(商城): 升级依赖

master
wayn 2 years ago
parent 41c6d772fe
commit a40e2e6284

@ -37,7 +37,7 @@
<druid.version>1.2.15</druid.version> <druid.version>1.2.15</druid.version>
<commons.io.version>2.11.0</commons.io.version> <commons.io.version>2.11.0</commons.io.version>
<commons.collections.version>4.4</commons.collections.version> <commons.collections.version>4.4</commons.collections.version>
<commons.fileupload.version>1.4</commons.fileupload.version> <commons.fileupload.version>1.5</commons.fileupload.version>
<commons-lang3.version>3.12.0</commons-lang3.version> <commons-lang3.version>3.12.0</commons-lang3.version>
<fastjson.version>2.0.23</fastjson.version> <fastjson.version>2.0.23</fastjson.version>
<easy-captcha.version>1.6.2</easy-captcha.version> <easy-captcha.version>1.6.2</easy-captcha.version>

@ -46,6 +46,7 @@ public class IHomeServiceImpl implements IHomeService {
@Override @Override
public R getHomeIndexDataCompletableFuture() { public R getHomeIndexDataCompletableFuture() {
log.info("getHomeIndexDataCompletableFuture begin");
R success = R.success(); R success = R.success();
Map<String, Object> shopHomeIndexHash = redisCache.getCacheMap(SHOP_HOME_INDEX_HASH); Map<String, Object> shopHomeIndexHash = redisCache.getCacheMap(SHOP_HOME_INDEX_HASH);
// 当缓存中存在数据,并且过期时间不为空而且小于等于过期时间则直接从缓存中取出数据 // 当缓存中存在数据,并且过期时间不为空而且小于等于过期时间则直接从缓存中取出数据
@ -53,7 +54,7 @@ public class IHomeServiceImpl implements IHomeService {
long time = (long) shopHomeIndexHash.get(SHOP_HOME_INDEX_HASH_EXPIRATION_FIELD); long time = (long) shopHomeIndexHash.get(SHOP_HOME_INDEX_HASH_EXPIRATION_FIELD);
if ((new Date().getTime() - time) <= Constants.ONE_DAY) { if ((new Date().getTime() - time) <= Constants.ONE_DAY) {
shopHomeIndexHash.forEach(success::add); shopHomeIndexHash.forEach(success::add);
log.info("getHomeIndexDataCompletableFuture:{}", success); log.info("getHomeIndexDataCompletableFuture end");
return success; return success;
} }
} }

Loading…
Cancel
Save