@@ -46,6 +46,9 @@ public class ImageLocalSearchImpl implements ImageLocalSearch {
|
|||||||
ImageHashEntity imageHashEntity =
|
ImageHashEntity imageHashEntity =
|
||||||
imageHashRepository.findByHash64HiAndHash64Lo(pHash.getFirstPart(),
|
imageHashRepository.findByHash64HiAndHash64Lo(pHash.getFirstPart(),
|
||||||
pHash.getSecondPart());
|
pHash.getSecondPart());
|
||||||
|
|
||||||
|
if (imageHashEntity == null) return null;
|
||||||
|
|
||||||
FileEntity file = fileEntityRepository.findByFileId(imageHashEntity.getFileId());
|
FileEntity file = fileEntityRepository.findByFileId(imageHashEntity.getFileId());
|
||||||
|
|
||||||
return new FileProtector.FileInfo(FileProtector.Type.IMAGE, imageHashEntity.getFileId(),
|
return new FileProtector.FileInfo(FileProtector.Type.IMAGE, imageHashEntity.getFileId(),
|
||||||
|
|||||||
Reference in New Issue
Block a user