admin
2019-03-13 69bee82b81626b82b7f39f0e459e4f56b1699b51
fanli/src/main/java/com/yeshi/fanli/service/impl/goods/ShareGoodsServiceImpl.java
@@ -461,6 +461,7 @@
      return getTaoBaoLink(uid, auctionId, tbPid.getPid());
   }
   @Override
   public TaoBaoLink getTaoBaoLink(Long uid, Long auctionId, String pid) throws ShareGoodsException {
      if (uid == null || uid <= 0) {
@@ -539,18 +540,6 @@
      taoBaoLink.setCouponLink(goods.getCouponLink());
      taoBaoLink.setGoods(goods);
      TaoBaoGoodsBrief taoBaoGoods = null;
      try {
         taoBaoGoods = TaoKeApiUtil.getSimpleGoodsInfo(auctionId);
      } catch (TaobaoGoodsDownException e) {
         throw new ShareGoodsException(2, "商品为空");
      }
      String url = goods.getAuctionUrl();
      if (!StringUtil.isNullOrEmpty(goods.getCouponLink()))
         url = goods.getCouponLink();
      String token = TaoKeApiUtil.getTKToken(taoBaoGoods.getPictUrl(), taoBaoGoods.getTitle(), url);
      taoBaoLink.setTaoToken(token);
      return taoBaoLink;
   }