|
@@ -138,6 +138,14 @@ public class AppletsLinkUtil {
|
|
|
* 25商品资料库列表
|
|
|
*/
|
|
|
public static final Pattern pattern41 = Pattern.compile("/document/beauty-archive.html");
|
|
|
+ /**
|
|
|
+ * 26采美百科产品详情页
|
|
|
+ */
|
|
|
+ public static final Pattern pattern42 = Pattern.compile("/encyclopedia/product-");
|
|
|
+ /**
|
|
|
+ * 26采美百科仪器详情页
|
|
|
+ */
|
|
|
+ public static final Pattern pattern43 = Pattern.compile("/encyclopedia/instrument-");
|
|
|
|
|
|
/**
|
|
|
* 根据链接判断链接类型
|
|
@@ -196,6 +204,10 @@ public class AppletsLinkUtil {
|
|
|
return 24;
|
|
|
} else if (pattern41.matcher(link).find()) {
|
|
|
return 25;
|
|
|
+ } else if (pattern42.matcher(link).find()) {
|
|
|
+ return 26;
|
|
|
+ } else if (pattern43.matcher(link).find()) {
|
|
|
+ return 27;
|
|
|
} else {
|
|
|
return -1;
|
|
|
}
|
|
@@ -224,7 +236,7 @@ public class AppletsLinkUtil {
|
|
|
split3 = split1[split1.length - 1].split("\\.");
|
|
|
}
|
|
|
}
|
|
|
- if (linkType == 3 || linkType == 5 || linkType == 20 || linkType == 22 || linkType == 23) {
|
|
|
+ if (linkType == 3 || linkType == 5 || linkType == 20 || linkType == 22 || linkType == 23 || linkType == 26 || linkType == 27) {
|
|
|
//-{id}.html
|
|
|
if (split3 != null && split3.length == 2) {
|
|
|
map.put("id", split3[0]);
|