动态图片审核逻辑修改
This commit is contained in:
parent
57018908aa
commit
f25d77675f
@ -160,13 +160,15 @@ public class CensorProfileListener implements MessageListener {
|
||||
if (Boolean.TRUE.equals(isViolation.get())) {
|
||||
|
||||
//删除动态与好友动态
|
||||
dynamicCommon.systemDeleteDynamic(censorProfileEvent.dynamicId());
|
||||
// dynamicCommon.systemDeleteDynamic(censorProfileEvent.dynamicId());
|
||||
|
||||
// 机器审核违规则删除这条动态全部图片
|
||||
for (DynamicPicture picture : pictures) {
|
||||
if (PhotoCensorStatusEnum.VIOLATION.name().equals(picture.getViolation())) {
|
||||
ossServiceClient.remove(picture.getResourceUrl());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (CollectionUtils.isEmpty(pictures)) {
|
||||
log.warn("审核结果 dynamicImageCensor 为空");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user