| | |
| | | return true; |
| | | } else if (link.contains("http://zmnxbc.com")) { // 手机端天猫APP分享 |
| | | return true; |
| | | } else if (link.contains("h5.m.taobao") || link.contains("detail.m.tmall") || link.contains("item.taobao") |
| | | } else if (link.contains("m.tb.cn") || link.contains("h5.m.taobao") || link.contains("detail.m.tmall") || link.contains("item.taobao") |
| | | || link.contains("detail.tmall")) { // 手机页面和电脑页面 |
| | | return true; |
| | | } else if (link.contains("//s.click.taobao.com")) { |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 是否有新版淘口令 |
| | | * |
| | | * @param text |
| | | * @return |
| | | */ |
| | | public static boolean isHaveNewVersionTaoBaoToken(String text) { |
| | | if (text == null) |
| | | return false; |
| | | |
| | | int count = 0; |
| | | for (int i = 0; i < text.length(); i++) { |
| | | //大小写字母+数字 |
| | | if ((text.charAt(i) >= 65 && text.charAt(i) <= 90) || (text.charAt(i) >= 97 && text.charAt(i) <= 122) || (text.charAt(i) >= 48 && text.charAt(i) <= 57)) { |
| | | count++; |
| | | if (count >= 10) |
| | | return true; |
| | | } else { |
| | | count = 0; |
| | | } |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | | public static void main(String[] args) { |
| | | System.out.println(isHaveNewVersionTaoBaoToken("復至\uD83D\uDC8B9.0₪sDO0X7l3Twm₪/ 去táo寶抢")); |
| | | } |
| | | |
| | | } |