dev add method link
Test Workflow / test (push) Has been cancelled

This commit is contained in:
2026-05-06 14:30:01 +07:00
parent 5c918d48ad
commit b864d7e9bd
@@ -164,13 +164,8 @@ public class ImageFoundRequestHandler implements RequestHandler {
try {
tempFile = convertToSupportedFormat(fileUploadService.downloadImageFromUrl(url));
File file = tempFile.toFile();
// String filePath = tempFile.toAbsolutePath().toString();
NoCopyCheckResult checkResult = noCopyFileService.checkFile(file, FileProtector.Type.IMAGE);
// Map<String, Long> hashSearchApiFile = imageHashService.calculateHash(Paths.get(filePath));
// ImageHashEntity checkFileHash = imageHashRepository.findByFileId(fileId);
// boolean hashesAreEqual = hashSearchApiFile.get("hi").equals(checkFileHash.getHash64Hi())
// && hashSearchApiFile.get("low").equals(checkFileHash.getHash64Lo());
if (checkResult instanceof ImageCheckResult.Success success) {
double watermarkCorrelation = success.getWatermarkCorrelation();
log.info("watermarkCorrelation: " + watermarkCorrelation);