yujian
2019-05-08 d36a73eb2aaf9383d0cc1f40c65b21138c75c741
fanli/src/main/java/com/yeshi/fanli/util/taobao/TaoBaoUtil.java
@@ -762,8 +762,8 @@
      tg.setSalesType(Math.random() > 0.5 ? 1 : 2);
      tg.setSalesType(Math.random() > 0.5 ? tg.getSalesType() : 3);
      List<ClientTextStyleVO> labels = new ArrayList<>();
      labels.add(new ClientTextStyleVO("标签测试内容1", "#FF0000"));
      labels.add(new ClientTextStyleVO("标签测试内容2", "#00FF00"));
      labels.add(new ClientTextStyleVO("标签测试内容", "#FF0000"));
      labels.add(new ClientTextStyleVO("标签测试内容", "#00FF00"));
      tg.setLabels(labels);
      return tg;
@@ -1014,8 +1014,8 @@
      tg.setSalesType(Math.random() > 0.5 ? 1 : 2);
      tg.setSalesType(Math.random() > 0.5 ? tg.getSalesType() : 3);
      List<ClientTextStyleVO> labels = new ArrayList<>();
      labels.add(new ClientTextStyleVO("标签测试内容1", "#FF0000"));
      labels.add(new ClientTextStyleVO("标签测试内容2", "#00FF00"));
      labels.add(new ClientTextStyleVO("标签测试内容", "#FF0000"));
      labels.add(new ClientTextStyleVO("标签测试内容", "#00FF00"));
      tg.setLabels(labels);
      return tg;
@@ -1329,9 +1329,9 @@
    * @return
    */
   public static String getGoodsHongBaoInfo(TaoBaoGoodsBrief goodsBrief, BigDecimal rate) {
      if (goodsBrief != null && goodsBrief.getMaterialLibType() != null && goodsBrief.getMaterialLibType() == 0)
         return "¥0.00";
      else
//      if (goodsBrief != null && goodsBrief.getMaterialLibType() != null && goodsBrief.getMaterialLibType() == 0)
//         return "¥0.00";
//      else
         return "¥" + getGoodsHongBaoMoney(goodsBrief, rate).toString();
   }
@@ -1805,9 +1805,21 @@
      else
         shop.setUserType(0);
      shop.setShopLink(TaoBaoUtil.getShopLink(shop.getId()));
      return shop;
   }
   /**
    * 根据卖家id获取店铺链接
    *
    * @param sellerId
    * @return
    */
   public static String getShopLink(Long sellerId) {
      return "http://store.taobao.com/shop/view_shop.htm?user_number_id=" + sellerId;
   }
   public static void main(String[] args) {
      String s = channelMap.get("3");
      System.out.println(s);