Commit 1243fe98 by 伍思炜

天翼学生卡和预制卡 中对详细地址的验证

parent ceb990eb
......@@ -204,6 +204,23 @@ public class PackageNewClothes {
}
/**
* 详细地址验证
*/
if(StringUtils.isBlank(address)){
return ResponseData.error("详细地址不能为空");
}else {
String[] sites = site.split(" ");
for (int i = 0; i < sites.length; i++) {
if (address.contains(sites[i])){
address = address.replaceAll(sites[i],"");
}
}
if (StringUtils.isBlank(address)){
return ResponseData.error("详细地址有误");
}
}
/**
* 黑牛卡年龄判断
*/
// if(kapin.indexOf("黑牛") > -1) {
......@@ -375,6 +392,23 @@ public class PackageNewClothes {
}
/**
* 详细地址验证
*/
if(StringUtils.isBlank(address)){
return ResponseData.error("详细地址不能为空");
}else {
String[] sites = site.split(" ");
for (int i = 0; i < sites.length; i++) {
if (address.contains(sites[i])){
address = address.replaceAll(sites[i],"");
}
}
if (StringUtils.isBlank(address)){
return ResponseData.error("详细地址有误");
}
}
/**
* 办理中+94天内订单判断
*/
Calendar instance = Calendar.getInstance();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment