diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/CensorProfileListener.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/CensorProfileListener.java index 431fd054..163fa3b8 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/CensorProfileListener.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/CensorProfileListener.java @@ -160,11 +160,13 @@ public class CensorProfileListener implements MessageListener { if (Boolean.TRUE.equals(isViolation.get())) { //删除动态与好友动态 - dynamicCommon.systemDeleteDynamic(censorProfileEvent.dynamicId()); +// dynamicCommon.systemDeleteDynamic(censorProfileEvent.dynamicId()); // 机器审核违规则删除这条动态全部图片 for (DynamicPicture picture : pictures) { - ossServiceClient.remove(picture.getResourceUrl()); + if (PhotoCensorStatusEnum.VIOLATION.name().equals(picture.getViolation())) { + ossServiceClient.remove(picture.getResourceUrl()); + } } }