From 651a15c78f668bef3859d9ed1bb7ad0b669d3600 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期五, 03 七月 2020 17:52:07 +0800
Subject: [PATCH] 多APP优化

---
 fanli/src/main/java/com/yeshi/fanli/controller/client/v2/JingDongControllerV2.java |    9 +++++----
 1 files changed, 5 insertions(+), 4 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..92f5b8f 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,7 +114,7 @@
 		}
 
 		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(),

--
Gitblit v1.8.0