|
@@ -850,6 +850,7 @@ public class ApiController {
|
|
|
|
|
|
if (CollUtil.isNotEmpty(ducImgUrl)) {
|
|
|
// 保存图片
|
|
|
+ log.info("all size:{}",all.size());
|
|
|
if (CollUtil.isNotEmpty(all)){
|
|
|
all.forEach(hash -> {
|
|
|
String key = String.format("%s:%s", id, hash);
|
|
@@ -888,7 +889,7 @@ public class ApiController {
|
|
|
List<String> temp = StrUtil.split(item, StrUtil.DOT);
|
|
|
String extName = temp.get(temp.size() - 1);
|
|
|
|
|
|
- if (IMG_EXT_NAME.contains(extName)) {
|
|
|
+ if (IMG_EXT_NAME.contains(extName.toLowerCase())) {
|
|
|
// 文件md5
|
|
|
try {
|
|
|
log.info("图片地址:{}", upmsConfig.getClientUrl() + item);
|
|
@@ -904,7 +905,7 @@ public class ApiController {
|
|
|
duplicateImageUrl.add(upmsConfig.getClientUrl() + item);
|
|
|
} else {
|
|
|
all.add(hash);
|
|
|
- log.info("hash:{}, size:{}", hash, all.size());
|
|
|
+ log.info("hash:{}, size:{}, list:{}", hash, all.size(), all);
|
|
|
}
|
|
|
} catch (IOException | URISyntaxException | NoSuchAlgorithmException e) {
|
|
|
e.printStackTrace();
|