|
@@ -18,7 +18,7 @@ public class VerifyUtil {
|
|
|
if(sntypecode.length() != 1) {
|
|
|
return "产品类型的编号长度必须为1";
|
|
|
}
|
|
|
- if(!(Pattern.matches("[MCP]+",sntypecode))){
|
|
|
+ if(!(Pattern.matches("[MCPS]+",sntypecode))){
|
|
|
return "产品类型的编号不符合规则,必须是M,C,P的一种";
|
|
|
}
|
|
|
break;
|
|
@@ -123,7 +123,7 @@ public class VerifyUtil {
|
|
|
|
|
|
Map<String,String> splitSnResult = ResolveUtil.splitImei(imei);
|
|
|
|
|
|
- if(!(Pattern.matches("[MCP]",splitSnResult.get("产品类型代码")))){
|
|
|
+ if(!(Pattern.matches("[MCPS]",splitSnResult.get("产品类型代码")))){
|
|
|
return "产品类型的编号不符合规则,必须是M,C,P的一种";
|
|
|
}
|
|
|
if(!(Pattern.matches("[A-Z]{2}",splitSnResult.get("pack制造商代码")))) {
|