From c104c3a5899ed06e93acdeb4eb0443367d7d0b3a Mon Sep 17 00:00:00 2001
From: wenc000 <450292408@qq.com>
Date: Sun, 31 May 2020 11:18:06 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=96=87=E4=BB=B6=E5=90=8E?=
=?UTF-8?q?=E7=BC=80=E5=A4=A7=E5=B0=8F=E5=86=99=E5=8C=BA=E5=88=86=E9=97=AE?=
=?UTF-8?q?=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../cm/common/plugin/service/file/impl/FileServiceImpl.java | 4 ++--
cloud-common/pom.xml | 4 ----
pom.xml | 6 ------
3 files changed, 2 insertions(+), 12 deletions(-)
diff --git a/cloud-common-plugin/src/main/java/com/cm/common/plugin/service/file/impl/FileServiceImpl.java b/cloud-common-plugin/src/main/java/com/cm/common/plugin/service/file/impl/FileServiceImpl.java
index bbb9d3c..80ddc3f 100644
--- a/cloud-common-plugin/src/main/java/com/cm/common/plugin/service/file/impl/FileServiceImpl.java
+++ b/cloud-common-plugin/src/main/java/com/cm/common/plugin/service/file/impl/FileServiceImpl.java
@@ -405,7 +405,7 @@ public class FileServiceImpl extends AbstractService implements IFileService {
*/
private boolean isTypeCorrect(String[] types, String fileType) {
for (String type : types) {
- if (fileType.equals(type)) {
+ if (StringUtils.equalsIgnoreCase(fileType, type)) {
return true;
}
}
@@ -421,7 +421,7 @@ public class FileServiceImpl extends AbstractService implements IFileService {
private String getFileType(String fileName) {
String[] names = fileName.split("\\.");
if (names != null) {
- return names[names.length - 1];
+ return names[names.length - 1].toLowerCase();
}
return "";
}
diff --git a/cloud-common/pom.xml b/cloud-common/pom.xml
index 76d2545..07ebdb1 100644
--- a/cloud-common/pom.xml
+++ b/cloud-common/pom.xml
@@ -128,10 +128,6 @@
javax.validation
validation-api
-
- org.hibernate
- hibernate-validator
-
diff --git a/pom.xml b/pom.xml
index 2167c71..54a8b7f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -52,7 +52,6 @@
1.4.0
3.17
2.0.1.Final
- 6.0.17.Final
1.6.1
2.3.0
2.10.4
@@ -202,11 +201,6 @@
validation-api
${validation.version}
-
- org.hibernate
- hibernate-validator
- ${hibernate-validation.version}
-