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