admin
2019-07-31 46c315e26e20b1e6f255185d3a18834e2601c5b2
商品推荐修改
1个文件已修改
9 ■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/SearchControllerV2.java 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/SearchControllerV2.java
@@ -16,6 +16,7 @@
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.yeshi.utils.JsonUtil;
import org.yeshi.utils.NumberUtil;
import org.yeshi.utils.taobao.TbImgUtil;
import com.google.gson.Gson;
@@ -135,6 +136,11 @@
                int end = text.indexOf("】");
                if (end > 2)
                    text = text.substring(1, end);
            }
            if (NumberUtil.isNumeric(text)) {
                out.println(JsonUtil.loadFalseResult("不支持纯数字"));
                return;
            }
            LogHelper.test("根据粘贴板推荐:" + text);
@@ -668,8 +674,7 @@
                BigDecimal shareRate = hongBaoManageService.getShareRate();
                for (PDDGoodsDetail goods : goodsList) {
                    GoodsDetailVO goodsDetailVO = GoodsDetailVOFactory.convertPDDGoods(goods, fanLiRate,
                            shareRate);
                    GoodsDetailVO goodsDetailVO = GoodsDetailVOFactory.convertPDDGoods(goods, fanLiRate, shareRate);
                    array.add(gson.toJson(goodsDetailVO));
                }
            }