|
@@ -130,6 +130,7 @@ public class AppletsLinkUtil {
|
|
|
public static final Pattern pattern39 = Pattern.compile("/cmpage/info-6");
|
|
|
public static final Pattern pattern39_1 = Pattern.compile("/activity/activityTopic");
|
|
|
public static final Pattern pattern39_2 = Pattern.compile("/cmpage/info-7");
|
|
|
+ public static final Pattern pattern39_3 = Pattern.compile("/product/beauty-");
|
|
|
/**
|
|
|
* 24美博会优惠券页
|
|
|
*/
|
|
@@ -215,7 +216,7 @@ public class AppletsLinkUtil {
|
|
|
return 20;
|
|
|
} else if (pattern37.matcher(link).find()) {
|
|
|
return 21;
|
|
|
- } else if (pattern39.matcher(link).find() || pattern39_1.matcher(link).find() || pattern39_2.matcher(link).find()) {
|
|
|
+ } else if (pattern39.matcher(link).find() || pattern39_1.matcher(link).find() || pattern39_2.matcher(link).find()|| pattern39_3.matcher(link).find()) {
|
|
|
return 23;
|
|
|
} else if (pattern40.matcher(link).find()) {
|
|
|
return 24;
|
|
@@ -295,4 +296,10 @@ public class AppletsLinkUtil {
|
|
|
}
|
|
|
return map;
|
|
|
}
|
|
|
+
|
|
|
+ public static void main(String[] args) {
|
|
|
+ System.out.println(getLinkType("https://www.caimei365.com/product/beauty-383.html"));
|
|
|
+ System.out.println(getLinkType("http://120.79.25.27:8009/quickOperation/operation-351.html"));
|
|
|
+ System.out.println(getLinkType("https://www-b.caimei365.com/flea-market/list.html"));
|
|
|
+ }
|
|
|
}
|