From 51a4ff5d777028d52a19c314a99f796334cb7b51 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 23 十一月 2019 18:30:01 +0800 Subject: [PATCH] 配置文件修改 --- fanli/src/main/java/com/yeshi/fanli/util/factory/goods/ShopInfoVOFactory.java | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/util/factory/goods/ShopInfoVOFactory.java b/fanli/src/main/java/com/yeshi/fanli/util/factory/goods/ShopInfoVOFactory.java index b75e45c..168b74e 100644 --- a/fanli/src/main/java/com/yeshi/fanli/util/factory/goods/ShopInfoVOFactory.java +++ b/fanli/src/main/java/com/yeshi/fanli/util/factory/goods/ShopInfoVOFactory.java @@ -7,6 +7,7 @@ import com.yeshi.fanli.entity.taobao.TaoBaoShop; import com.yeshi.fanli.entity.taobao.TaoBaoShopInfo; import com.yeshi.fanli.util.StringUtil; +import com.yeshi.fanli.util.taobao.TaoBaoUtil; import com.yeshi.fanli.vo.goods.ShopInfoVO; @@ -58,6 +59,12 @@ } else { shopInfoVO.setShopIcon(shop.getShopIcon()); } + + String shopLink = shop.getShopLink(); + if (StringUtil.isNullOrEmpty(shopLink)) + shopLink = TaoBaoUtil.getShopLink(shop.getId()); + shopInfoVO.setShopLink(shopLink); + return shopInfoVO; } -- Gitblit v1.8.0