|
|
@@ -159,7 +159,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";
|
|
|
}
|
|
|
@@ -214,7 +214,7 @@ public class GoodsDonController {
|
|
|
@GetMapping("/get/homePage")
|
|
|
public Result<List<GoodsFrontListView>> 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";
|
|
|
}
|
|
|
@@ -254,7 +254,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 {
|
|
|
@@ -321,7 +321,7 @@ public class GoodsDonController {
|
|
|
*/
|
|
|
@GetMapping("/get/recommend/{id}")
|
|
|
public Result<List<GoodsFrontListView>> 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);
|
|
|
Long fUid = StpUserUtil.getUserIdAfterLogin();
|
|
|
if (value != null) {
|
|
|
@@ -487,7 +487,7 @@ public class GoodsDonController {
|
|
|
list.forEach(data -> {
|
|
|
if (data.getIsSp()) {
|
|
|
//查找所有特定规格最小价格 满足条件
|
|
|
- String specificGoodsKey = RedisService.key.YH_HOME_PAGHE_CACHE.getName() + "specific:" + data.getId();
|
|
|
+ String specificGoodsKey = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "specific:" + data.getId();
|
|
|
Object speciObj = redisService.get(specificGoodsKey);
|
|
|
List<GoodsDonSku> specificSkus = null;
|
|
|
if (speciObj != null) {
|