|
|
@@ -157,7 +157,7 @@ public class GoodsDonController {
|
|
|
@GetMapping("/get/list")
|
|
|
public Result<List<GoodsFrontListView>> getGoodsList() {
|
|
|
List<Long> filter_goodsIds = getFilterGoodsIds();
|
|
|
- String pcCacheKey = RedisService.key.YH_HOME_PAGHE_CACHE.getName() + "PC";
|
|
|
+ String pcCacheKey = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "PC";
|
|
|
if (CollUtil.isNotEmpty(filter_goodsIds)) {
|
|
|
pcCacheKey += ":hz-ip";
|
|
|
}
|
|
|
@@ -207,7 +207,7 @@ public class GoodsDonController {
|
|
|
@GetMapping("/get/homePage")
|
|
|
public Result<List<GoodsHomePageView>> getGoodsHomePage() {
|
|
|
List<Long> filter_goodsIds = getFilterGoodsIds();
|
|
|
- String h5CacheKey = RedisService.key.YH_HOME_PAGHE_CACHE.getName() + "H5";
|
|
|
+ String h5CacheKey = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "H5";
|
|
|
if (CollUtil.isNotEmpty(filter_goodsIds)) {
|
|
|
h5CacheKey += ":hz-ip";
|
|
|
}
|
|
|
@@ -242,7 +242,7 @@ public class GoodsDonController {
|
|
|
*/
|
|
|
@GetMapping("/get/register")
|
|
|
public Result<List<RegisterGoodsDonView>> getRegisterGoodsDon() {
|
|
|
- String registerCacheKey = RedisService.key.REGISTER_HOME_PAGE_CACHE.getName();
|
|
|
+ String registerCacheKey = RedisService.key.REGISTER_HOME_PAGE_CACHE.getEnvName();
|
|
|
Object value = redisService.get(registerCacheKey);
|
|
|
if (value != null) {
|
|
|
try {
|
|
|
@@ -296,7 +296,7 @@ public class GoodsDonController {
|
|
|
*/
|
|
|
@GetMapping("/get/recommend/{id}")
|
|
|
public Result<List<GoodsRecommendViews>> getRecommendGoodsByGid(@PathVariable Long id) throws Exception {
|
|
|
- String key = RedisService.key.YH_HOME_PAGHE_CACHE.getName() + "recommend:" + id;
|
|
|
+ String key = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "recommend:" + id;
|
|
|
Object value = redisService.get(key);
|
|
|
if (value != null) {
|
|
|
List<GoodsRecommendViews> goodsRecommendViews = Jsons.parseList(value.toString(), GoodsRecommendViews.class);
|