|
|
@@ -78,7 +78,6 @@ public class DomainOrderService {
|
|
|
if (StringUtils.isEmpty(str)) {
|
|
|
throw new BusinessException("sms context is empty!");
|
|
|
}
|
|
|
- str = str.replaceAll("[^a-zA-Z0-9\\u4E00-\\u9FA5]", "");
|
|
|
Pattern p = Pattern.compile("[\u4E00-\u9FA5|\\!|\\,|\\。|\\(|\\)|\\《|\\》|\\“|\\”|\\?|\\:|\\;|\\【|\\】]");
|
|
|
Matcher m = p.matcher(str);
|
|
|
return m.find();
|
|
|
@@ -136,6 +135,7 @@ public class DomainOrderService {
|
|
|
|
|
|
DomainOrder domainOrder = new DomainOrder();
|
|
|
// domainOrder.setPic(Collections.singletonList(fileObject));
|
|
|
+ domain = domain.replaceAll("[^a-zA-Z0-9\\u4E00-\\u9FA5]", "");
|
|
|
domainOrder.setPicName(domain);
|
|
|
domainOrder.setPrice(price);
|
|
|
domainOrder.setDomainName((domain + ".nft").toLowerCase());
|
|
|
@@ -259,6 +259,7 @@ public class DomainOrderService {
|
|
|
int dotIndex = domain.indexOf(".");
|
|
|
domain = domain.substring(0, dotIndex);
|
|
|
}
|
|
|
+ domain = domain.replaceAll("[^a-zA-Z0-9\\u4E00-\\u9FA5]", "");
|
|
|
Pageable pageable = PageRequest.of(0, 10, Sort.by("createdAt").descending());
|
|
|
List<DomainOrder> used = domainOrderRepo.searchUsedDomain("%" + domain + "%", OrderStatus.CANCELLED, pageable)
|
|
|
.getContent();
|