| | |
| | | }
|
| | |
|
| | | @Override
|
| | | @Cacheable(value = "configCache", key = "'listCacheSpecialToIndex'")
|
| | | @Cacheable(value = "configCache", key = "'listCacheSpecialToIndex'+#acceptData.platform+'-'+#acceptData.version")
|
| | | public JSONObject listCacheSpecialToIndex(AcceptData acceptData) throws Exception {
|
| | |
|
| | | // 首页-5圆形2排区域
|
| | |
| | | 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);
|
| | |
|
| | |
| | | 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));
|