yujian
2019-08-21 7f2f5ef5637a6871f4329e464eeba97eb59e94a3
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/RecommendControllerV2.java
@@ -129,10 +129,16 @@
         JSONObject root = specialService.listCacheSpecialToIndex(acceptData, deviceSex);
         // 2、顶部轮播图
         List<SwiperPicture> topPicList = swiperPictureService.getByBannerCard("index_top");
         if (topPicList == null) {
            topPicList = new ArrayList<SwiperPicture>();
         List<SwiperPicture> oldtopPicList = swiperPictureService.getByBannerCard("index_top");
         List<SwiperPicture> topPicList = new ArrayList<>();
         if (oldtopPicList != null && oldtopPicList.size() > 0)
            topPicList.addAll(oldtopPicList);
         if ("ios".equalsIgnoreCase(acceptData.getPlatform())) {
            SwiperPicture notifyReName = swiperPictureService.selectByPrimaryKey(162L);
            if (notifyReName != null)
               topPicList.add(0, notifyReName);
         }
         root.put("topPicList", JsonUtil.getApiCommonGson().toJson(topPicList));
         // 3、邀请有奖
@@ -318,15 +324,14 @@
      JSONObject root = new JSONObject();
      JSONArray array = new JSONArray();
      array.add(
            "https://gw.alicdn.com/bao/uploaded/i2/72768346/O1CN01rwRcUH2BWW6oc01hd_!!0-item_pic.jpg_180x180xz.jpg_.webp");
            "http://img.flqapp.com/resource/integral/integral_home_icon_2.png");
      array.add(
            "https://gw.alicdn.com/bao/uploaded/i2/479184430/O1CN01HjEq4j1iaz7HbWeX9_!!479184430.jpg_180x180xz.jpg_.webp");
            "http://img.flqapp.com/resource/integral/integral_home_icon_1.png");
      root.put("imgList", array);
      JSONObject params = new JSONObject();
      params.put("url", configService.get("spike_goods_link"));
      params.put("balanceMore", true);
      root.put("params", params);
      root.put("jumpDetail", jumpDetailV2Service.getByTypeCache("web",
      root.put("jumpDetail", jumpDetailV2Service.getByTypeCache("integralExchange",
            Constant.getPlatformCode(acceptData.getPlatform()), Integer.parseInt(acceptData.getVersion())));
      root.put("name", "金币兑换");