| | |
| | | } 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);
|
| | | }
|