Browse Source

!147 变量filename赋值后未使用

Merge pull request !147 from runphp/N/A
tags/v3.5.0
若依 3 years ago committed by Gitee
parent
commit
d30e136c1d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
  1. 5
      ruoyi-modules/ruoyi-file/src/main/java/com/ruoyi/file/utils/FileUploadUtils.java

5
ruoyi-modules/ruoyi-file/src/main/java/com/ruoyi/file/utils/FileUploadUtils.java

@ -86,10 +86,7 @@ public class FileUploadUtils @@ -86,10 +86,7 @@ public class FileUploadUtils
*/
public static final String extractFilename(MultipartFile file)
{
String fileName = file.getOriginalFilename();
String extension = getExtension(file);
fileName = DateUtils.datePath() + "/" + IdUtils.fastUUID() + "." + extension;
return fileName;
return DateUtils.datePath() + "/" + IdUtils.fastUUID() + "." + getExtension(file);
}
private static final File getAbsoluteFile(String uploadDir, String fileName) throws IOException

Loading…
Cancel
Save