yujian
2019-05-21 a520bc5faff1d6ee9a1d2da62da461700997f418
fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SpecialServiceImpl.java
@@ -327,7 +327,7 @@
   }
   @Override
   @Cacheable(value = "configCache", key = "'listCacheSpecialToIndex'")
   @Cacheable(value = "configCache", key = "'listCacheSpecialToIndex'+#acceptData.platform+'-'+#acceptData.version")
   public JSONObject listCacheSpecialToIndex(AcceptData acceptData) throws Exception {
      // 首页-5圆形2排区域
@@ -365,16 +365,6 @@
            activityMap.put("bottomPicture", special.getBottomPicture());
         }
      }
      // 品牌券
      // >=1.5.40后的版本可以用
      if (("android".equalsIgnoreCase(acceptData.getPlatform()) && Integer.parseInt(acceptData.getVersion()) > 39)
            || "ios".equalsIgnoreCase(acceptData.getPlatform()) && Integer.parseInt(acceptData.getVersion()) > 48)
         if (listActivity != null)
            for (int i = 0; i < listActivity.size(); i++) {
               if ("品牌券".equalsIgnoreCase(listActivity.get(i).getName())) {
                  listActivity.get(i).setJumpDetail(jumpDetailV2Service.getByTypeCache("hot_cakes"));
               }
            }
      handlelist(listActivity);
@@ -392,6 +382,18 @@
            blockJsonMap.put("bottomPicture", special.getBottomPicture());
         }
      }
      // 品牌券
      // >=1.5.40后的版本可以用
      if (("android".equalsIgnoreCase(acceptData.getPlatform()) && Integer.parseInt(acceptData.getVersion()) > 39)
            || "ios".equalsIgnoreCase(acceptData.getPlatform()) && Integer.parseInt(acceptData.getVersion()) > 48)
         if (listBlock != null)
            for (int i = 0; i < listBlock.size(); i++) {
               if ("品牌券".equalsIgnoreCase(listBlock.get(i).getName())) {
                  listBlock.get(i).setJumpDetail(jumpDetailV2Service.getByTypeCache("hot_cakes"));
               }
            }
      // 数据处理
      handlelist(listBlock);
      blockJsonMap.put("list", JsonUtil.getApiCommonGson().toJson(listBlock));