From dc5be7d38446f70e6ff86df311119c32b41fe7f8 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 28 十一月 2020 16:37:05 +0800 Subject: [PATCH] 大淘客搜索接口升级 --- fanli/src/main/java/com/yeshi/fanli/controller/client/v2/JingDongControllerV2.java | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/JingDongControllerV2.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/JingDongControllerV2.java index ff7d7c9..688ef18 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/JingDongControllerV2.java +++ b/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(); -- Gitblit v1.8.0