|
|
@@ -78,12 +78,10 @@ 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);
|
|
|
- if (m.find()) {
|
|
|
- return true;
|
|
|
- }
|
|
|
- return false;
|
|
|
+ return m.find();
|
|
|
}
|
|
|
|
|
|
public DomainOrder create(Long userId, String domain, BigDecimal price, Long year) {
|