From 778109ce66911ec61a1ffb88b41808241e61b7a1 Mon Sep 17 00:00:00 2001
From: yujian <yujian@123.com>
Date: 星期一, 29 七月 2019 11:51:37 +0800
Subject: [PATCH] 通用调整

---
 fanli/src/main/java/com/yeshi/fanli/controller/client/v2/SearchControllerV2.java |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/SearchControllerV2.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/SearchControllerV2.java
index 1c8c745..4c150eb 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/SearchControllerV2.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/SearchControllerV2.java
@@ -110,8 +110,8 @@
 	 *            鍟嗗搧閾炬帴
 	 * @param out
 	 */
-	@RequestMapping(value = "getNewGoodsInfo", method = RequestMethod.POST)
-	public void getNewGoodsInfo(AcceptData acceptData, String text, PrintWriter out) {
+	@RequestMapping(value = "getRecommendInfo", method = RequestMethod.POST)
+	public void getRecommendInfo(AcceptData acceptData, String text, PrintWriter out) {
 		if (StringUtil.isNullOrEmpty(text)) {
 			out.print(JsonUtil.loadFalseResult("鍊间负绌�"));
 			return;
@@ -195,15 +195,16 @@
 		JSONObject taoBaoGoodsJSON = new JSONObject();
 		taoBaoGoodsJSON.put("title", tb.getTitle());
 		taoBaoGoodsJSON.put("zkPrice", tb.getZkPrice());
-		taoBaoGoodsJSON.put("auctionId", tb.getAuctionId());
+		taoBaoGoodsJSON.put("id", tb.getAuctionId());
+		taoBaoGoodsJSON.put("goodsType", Constant.SOURCE_TYPE_TAOBAO);
 		taoBaoGoodsJSON.put("url", "http://item.taobao.com/item.htm?id=" + tb.getAuctionId());
-		data.put("taoBaoGoodsBrief", taoBaoGoodsJSON);
+		data.put("goods", taoBaoGoodsJSON);
 		if (!StringUtil.isNullOrEmpty(tb.getPictUrl())) {
 			if (tb.getImgList() == null)
 				tb.setImgList(new ArrayList<>());
 			tb.getImgList().add(0, TbImgUtil.getTBSize220Img(tb.getPictUrl()));
 		}
-		data.put("tbImgs", tb.getImgList());
+		data.put("imgs", tb.getImgList());
 		JSONObject root = new JSONObject();
 		root.put("type", 1);
 		root.put("data", data);

--
Gitblit v1.8.0