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