舆情自动化入参校验
This commit is contained in:
@@ -106,8 +106,11 @@ public class MqMessageRecordServiceImpl extends ServiceImpl<MqMessageRecordMappe
|
||||
public boolean processMessageByMQ(String message) {
|
||||
log.info("communityProcessMessageByMQ message: {}", message);
|
||||
CommunityTargetDTO communityTargetDTO = JSON.parseObject(message, CommunityTargetDTO.class);
|
||||
if (communityTargetDTO == null) {
|
||||
log.error("communityProcessMessageByMQ message is null");
|
||||
if (communityTargetDTO == null
|
||||
|| StringUtils.isBlank(communityTargetDTO.getTargetId())
|
||||
|| StringUtils.isBlank(communityTargetDTO.getTargetType())
|
||||
|| communityTargetDTO.getContent().isEmpty()) {
|
||||
log.error("社区舆情自动化校验失败入参异常:{}",JSON.toJSONString(communityTargetDTO));
|
||||
return false;
|
||||
}
|
||||
// 生成ai分析请求id
|
||||
|
||||
Reference in New Issue
Block a user