Browse Source

修复rename错误

NorthLan 6 years ago
parent
commit
ca26467752
1 changed files with 1 additions and 1 deletions
  1. 1 1
      zen-core/src/main/kotlin/com/gxzc/zen/common/util/UploadUtil.kt

+ 1 - 1
zen-core/src/main/kotlin/com/gxzc/zen/common/util/UploadUtil.kt

@@ -261,7 +261,7 @@ object UploadUtil {
         } else {
             // 后缀
             val ext = FilenameUtils.getExtension(rename)
-            if (ext == null) {
+            if (ext.isNullOrEmpty()) {
                 "$rename.${FilenameUtils.getExtension(filename)}"
             } else {
                 rename