yujian
2019-05-17 33553858dc64c199f40a8f0d1e2eff78228b1794
商品详情  店铺链接为空时,组合链接
1个文件已修改
12 ■■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/controller/client/RecommendController.java 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/controller/client/RecommendController.java
@@ -2057,14 +2057,24 @@
            } else {
                tbShopInfo.setUserType("0");
            }
            String shopLink = tbShopInfo.getShopUrl();
            if (StringUtil.isNullOrEmpty(shopLink)) {
                tbShopInfo.setShopUrl(TaoBaoUtil.getShopLink(tbShopInfo.getUserId()));
            }
        }
        // 店铺
        if (("android".equalsIgnoreCase(acceptData.getPlatform()) && Integer.parseInt(acceptData.getVersion()) >= 40)
                || ("ios".equalsIgnoreCase(acceptData.getPlatform())
                        && Integer.parseInt(acceptData.getVersion()) >= 49)) {
            TaoBaoShop shop = taoBaoShopService.getTaoBaoShop(goods.getAuctionId(), goods.getSellerId());
            if (shop != null)
            if (shop != null) {
                String shopLink = shop.getShopLink();
                if (StringUtil.isNullOrEmpty(shopLink)) {
                    shop.setShopLink(TaoBaoUtil.getShopLink(shop.getId()));
                }
                goodsJson.put("shopInfo", shop);
            }
        } else {
            goodsJson.put("shopInfo", tbShopInfo);
        }