|
|
|
@ -170,11 +170,13 @@ public class BuildRecordController {
|
|
|
|
|
return new ResponseEntity<>(CommonResponse.createByError(ResponseCode.EMPTY_ARGUMENT), HttpStatus.OK);
|
|
|
|
|
}
|
|
|
|
|
//判断内容是否含有不良词
|
|
|
|
|
if (!StringUtils.isBlank(buildRecordSendVO.getRemoteRecord().getSmsContent())){
|
|
|
|
|
WordFilter wf = new WordFilter();
|
|
|
|
|
String filter_search = wf.filter_search(buildRecordSendVO.getRemoteRecord().getSmsContent());
|
|
|
|
|
if (buildRecordSendVO.getRemoteRecord().getSmsContent().length() != filter_search.length()){
|
|
|
|
|
return new ResponseEntity<>(CommonResponse.createByError(ResponseCode.NO_SMS_BAD), HttpStatus.OK);
|
|
|
|
|
if(buildRecordSendVO.getRemoteRecord() != null){
|
|
|
|
|
if (!StringUtils.isBlank(buildRecordSendVO.getRemoteRecord().getSmsContent())){
|
|
|
|
|
WordFilter wf = new WordFilter();
|
|
|
|
|
String filter_search = wf.filter_search(buildRecordSendVO.getRemoteRecord().getSmsContent());
|
|
|
|
|
if (buildRecordSendVO.getRemoteRecord().getSmsContent().length() != filter_search.length()){
|
|
|
|
|
return new ResponseEntity<>(CommonResponse.createByError(ResponseCode.NO_SMS_BAD), HttpStatus.OK);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
SendBigDataDTO sendBigDataDTO = new SendBigDataDTO();
|
|
|
|
|