韦忠喜提交

master
weizhongxi 3 years ago
parent b16a03d05d
commit 32c121a470

@ -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();

Loading…
Cancel
Save