You've already forked FrameTour-BE
```
refactor(puzzle): 移除重复图片检测中的异常抛出逻辑 - 删除了当所有图片URL相同时抛出DuplicateImageException的检查代码 - 保留了URL去重和日志记录功能 - 简化了重复图片检测流程 ```
This commit is contained in:
@@ -129,13 +129,6 @@ public class PuzzleDuplicationDetector {
|
|||||||
// 3. 对URL去重
|
// 3. 对URL去重
|
||||||
Set<String> uniqueUrls = new HashSet<>(imageUrls);
|
Set<String> uniqueUrls = new HashSet<>(imageUrls);
|
||||||
|
|
||||||
// 4. 如果去重后只有1个URL,说明所有图片相同
|
|
||||||
if (uniqueUrls.size() == 1) {
|
|
||||||
String duplicateUrl = uniqueUrls.iterator().next();
|
|
||||||
log.warn("检测到重复图片: 所有{}个图片元素使用相同URL: {}", imageUrls.size(), duplicateUrl);
|
|
||||||
throw new DuplicateImageException(duplicateUrl, imageUrls.size());
|
|
||||||
}
|
|
||||||
|
|
||||||
log.debug("重复图片检测通过: 发现{}个不同的图片URL", uniqueUrls.size());
|
log.debug("重复图片检测通过: 发现{}个不同的图片URL", uniqueUrls.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user