admin
2019-09-29 6f14a131b39c8fc44b29b6130c4e2002bbf2d3ca
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/SearchControllerV2.java
@@ -181,7 +181,6 @@
         }
         JSONObject root = new JSONObject();
         root.put("type", 2);
         JSONObject data = new JSONObject();
         data.put("title", text);
@@ -253,8 +252,17 @@
               String pddId = PinDuoDuoUtil.getPDDGoodsId(text);
               if (!StringUtil.isNullOrEmpty(pddId)) {
                  PDDGoodsDetail goods = PinDuoDuoApiUtil.getGoodsDetail(Long.parseLong(pddId));
                  if (goods != null)
                  if (goods != null) {
                     commonGoods = CommonGoodsFactory.create(goods);
                  } else {
                     type = 4;
                     goods = PinDuoDuoUtil.getPDDGoodsInfo(pddId);
                     if(goods != null) {
                        commonGoods = new CommonGoods();
                        commonGoods.setTitle(goods.getGoodsName());
                        commonGoods.setPicture(goods.getGoodsThumbnailUrl());
                     }
                  }
               }
            }
         }