From 41aedac31eb4c5b9f7b98bacec18c45b3926d69c Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期五, 27 九月 2019 16:57:54 +0800 Subject: [PATCH] 京东商品 券bug --- fanli/src/main/java/com/yeshi/fanli/controller/client/v2/SearchControllerV2.java | 10 ++++++---- 1 files changed, 6 insertions(+), 4 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 67d202c..98395d6 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 @@ -256,10 +256,12 @@ commonGoods = CommonGoodsFactory.create(goods); } else { type = 4; - goods = PinDuoDuoUtil.getPDDGoodsInfo("26478646158"); - commonGoods = new CommonGoods(); - commonGoods.setTitle(goods.getGoodsName()); - commonGoods.setPicture(goods.getGoodsThumbnailUrl()); + goods = PinDuoDuoUtil.getPDDGoodsInfo(pddId); + if(goods != null) { + commonGoods = new CommonGoods(); + commonGoods.setTitle(goods.getGoodsName()); + commonGoods.setPicture(goods.getGoodsThumbnailUrl()); + } } } } -- Gitblit v1.8.0