yujian
2019-04-29 9a24f2802a3d6fe3e82c05e52f2880d65ad04dcf
fanli/src/main/java/com/yeshi/fanli/util/taobao/TaoBaoUtil.java
@@ -760,8 +760,10 @@
      // 测试使用
      tg.setMoneyType(Math.random() > 0.5 ? 1 : 2);
      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("标签测试内容", "#FF0000"));
      labels.add(new ClientTextStyleVO("标签测试内容1", "#FF0000"));
      labels.add(new ClientTextStyleVO("标签测试内容2", "#00FF00"));
      tg.setLabels(labels);
      return tg;
@@ -1010,8 +1012,10 @@
      // 测试使用
      tg.setMoneyType(Math.random() > 0.5 ? 1 : 2);
      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("标签测试内容", "#FF0000"));
      labels.add(new ClientTextStyleVO("标签测试内容1", "#FF0000"));
      labels.add(new ClientTextStyleVO("标签测试内容2", "#00FF00"));
      tg.setLabels(labels);
      return tg;
@@ -1801,8 +1805,20 @@
      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");