From e04f81915e100107eca5fe16ba44898f3a0dbd55 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期六, 04 七月 2020 18:48:06 +0800
Subject: [PATCH] redis指定数据库

---
 fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/SearchController.java |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/SearchController.java b/fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/SearchController.java
index 64bf7d7..b4c4367 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/SearchController.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/SearchController.java
@@ -9,6 +9,8 @@
 import javax.annotation.Resource;
 import javax.servlet.http.HttpSession;
 
+import com.yeshi.fanli.entity.SystemEnum;
+import com.yeshi.fanli.util.SystemInfoUtil;
 import org.springframework.core.task.TaskExecutor;
 import org.springframework.stereotype.Controller;
 import org.springframework.web.bind.annotation.RequestMapping;
@@ -215,7 +217,7 @@
 			goodsType = Constant.SOURCE_TYPE_TAOBAO;
 		}
 
-		List<HotSearch> list = hotSearchService.getHotSearchCache(goodsType);
+		List<HotSearch> list = hotSearchService.getHotSearchCache(goodsType,acceptData.getSystem());
 		if (list == null || list.size() == 0) {
 			out.print(JsonUtil.loadFalseResult("娌℃湁鏁版嵁"));
 			return;
@@ -228,7 +230,7 @@
 		JSONObject data = new JSONObject();
 		data.put("count", list.size());
 		data.put("hotSearchList", hotSearchList);
-		data.put("helpLink", configService.get(ConfigKeyEnum.newerGonglue.getKey()));
+		data.put("helpLink", configService.getValue(ConfigKeyEnum.newerGonglue.getKey(), SystemInfoUtil.getSystem(acceptData)));
 		out.print(JsonUtil.loadTrueResult(data));
 	}
 
@@ -334,10 +336,10 @@
 	 */
 	private void searchJDGoods(WXMPAcceptData acceptData, String key, Integer page, String filter, Integer order,
 			PrintWriter out) {
-
+		SystemEnum system= SystemInfoUtil.getSystemByWXCXCAppId(acceptData.getAppId());
 		JDSearchResult result = null;
 		boolean hasCoupon = false;
-		String way = configService.get(ConfigKeyEnum.jdApiSearchKey.getKey());
+		String way = configService.getValue(ConfigKeyEnum.jdApiSearchKey.getKey(), system);
 		if ("1".equals(way)) {
 			JDFilter filterAPI = new JDFilter();
 			filterAPI.setKeyword(SearchFilterUtil.filterSearchContent(key));

--
Gitblit v1.8.0