韦忠喜提交

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

Loading…
Cancel
Save