| | |
| | | link = urlList.get(0);
|
| | | else// 第一个口令在第一个链接前面
|
| | | token = tokenList.get(0);
|
| | |
|
| | | } else if (typeSet.contains(ClipboardContentType.link) && typeSet.contains(ClipboardContentType.text)) {// 链接+文本
|
| | | link = urlList.get(0);
|
| | |
|
| | |
| | | if (!StringUtil.isNullOrEmpty(link)) {
|
| | | CommonGoods goods = parseLink(urlList.get(0));
|
| | | if (goods == null || goods.getGoodsId() == null) {
|
| | | if (urlList.size() > 1)
|
| | | if (tokenList.size() == 0 && urlList.size() == 2
|
| | | && urlList.get(0).indexOf("://uland.taobao.com") > -1
|
| | | && urlList.get(1).indexOf("?id=") > -1) {// 有2个链接的文案,第一个是店铺券链接,其中二个是淘宝商品详情
|
| | | CommonGoods goods1 = parseLink(urlList.get(1));
|
| | | if (goods1 != null && goods1.getGoodsType() == Constant.SOURCE_TYPE_TAOBAO) {
|
| | | resultListener.onResult(goods1);
|
| | | } else {
|
| | | resultListener.onResult(new GoodsDocParseResultVO(text, urlList.get(0)));
|
| | | }
|
| | |
|
| | | } else if (urlList.size() > 1)
|
| | | resultListener.onResult(new GoodsDocParseResultVO(text, urlList.get(0)));
|
| | | else {// 单链接
|
| | | // 判断是否包含可转链的链接
|
| | |
| | | tb = TaoBaoUtil.parsePhoneShareUrlByTM(link);
|
| | | if (tb != null)
|
| | | auctionId = tb.getAuctionId() + "";
|
| | | } else if (link.contains("h5.m.taobao") || link.contains("detail.m.tmall")|| link.contains("item.taobao")
|
| | | } else if (link.contains("h5.m.taobao") || link.contains("detail.m.tmall") || link.contains("item.taobao")
|
| | | || link.contains("detail.tmall")) { // 手机页面和电脑页面
|
| | | Map<String, String> map = Utils.parseURL(link);
|
| | | String id = "";
|