动态图片审核逻辑修改

This commit is contained in:
tianfeng 2026-02-04 17:17:25 +08:00
parent 57018908aa
commit f25d77675f

View File

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