| | |
| | | // 测试使用
|
| | | 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;
|
| | |
| | | // 测试使用
|
| | | 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;
|
| | |
| | | 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");
|