yujian
2019-07-29 ac208d6f60284be820fe82dfdf44142f02d9e3ef
Merge branch 'div' of ssh://193.112.35.168:29418/fanli-server into div
1个文件已修改
11 ■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/SearchControllerV2.java 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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);