admin
2020-11-28 dc5be7d38446f70e6ff86df311119c32b41fe7f8
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/JingDongControllerV2.java
@@ -6,6 +6,7 @@
import javax.annotation.Resource;
import com.yeshi.fanli.util.SystemInfoUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.yeshi.utils.JsonUtil;
@@ -82,7 +83,7 @@
   public void getJDClass(AcceptData acceptData, PrintWriter out) {
      JSONObject root = new JSONObject();
      root.put("list", jdGoodsService.getSpecialClass());
      root.put("jdLink", configService.get(ConfigKeyEnum.jingdongH5Link.getKey()));
      root.put("jdLink", configService.getValue(ConfigKeyEnum.jingdongH5Link.getKey(), SystemInfoUtil.getSystem(acceptData)));
      out.print(JsonUtil.loadTrueResult(root));
   }
@@ -97,7 +98,7 @@
   public void getGoodsInfo(AcceptData acceptData, Long cid, Integer page, PrintWriter out) {
      JSONObject root = new JSONObject();
      if (cid == 1 && page == 1) {
         List<BannerVO> topPicList = swiperPictureService.getByBannerCardAndVersion("jingdong_special_index",acceptData.getPlatform(), Integer.parseInt(acceptData.getVersion()));
         List<BannerVO> topPicList = swiperPictureService.getByBannerCardAndVersion("jingdong_special_index",acceptData.getPlatform(), Integer.parseInt(acceptData.getVersion()),acceptData.getSystem());
         if (topPicList == null) {
            topPicList = new ArrayList<BannerVO>();
         }
@@ -105,7 +106,7 @@
         int platformCode = Constant.getPlatformCode(acceptData.getPlatform());
         
         List<Special> listSpecial = specialService.listByPlaceKey("jingdong_special_index", platformCode, Integer.parseInt(acceptData.getVersion()));
         List<Special> listSpecial = specialService.listByPlaceKey("jingdong_special_index", platformCode, Integer.parseInt(acceptData.getVersion()),acceptData.getSystem());
         if (listSpecial == null) {
            listSpecial = new ArrayList<Special>();
         }
@@ -113,11 +114,11 @@
      }
      try {
         List<JDGoods> goodsList = jdGoodsService.specialSearch(page, cid);
         List<JDGoods> goodsList = jdGoodsService.specialSearch(page, cid,acceptData.getSystem());
         JSONArray array = new JSONArray();
         if (goodsList != null && goodsList.size() > 0) {
             ConfigParamsDTO paramsDTO = orderHongBaoMoneyComputeService.getShowComputeRate(acceptData.getPlatform(),
                  acceptData.getVersion());
                  acceptData.getVersion(),acceptData.getSystem());
            Gson gson = JsonUtil.getConvertBigDecimalToStringSubZeroBuilder(new GsonBuilder())
                  .excludeFieldsWithoutExposeAnnotation().setDateFormat("yyyy-MM-dd").create();