diff --git a/src/main/java/com/yutou/tools/utils/Tools.java b/src/main/java/com/yutou/tools/utils/Tools.java index 41f137d..bd435c7 100644 --- a/src/main/java/com/yutou/tools/utils/Tools.java +++ b/src/main/java/com/yutou/tools/utils/Tools.java @@ -238,9 +238,8 @@ public class Tools { } } file.transferTo(saveFile); - fileName = URLEncoder.encode(fileName, "UTF-8"); System.out.println("上传文件保存路径:" + saveFile.getAbsolutePath()); - return path + fileName; + return saveFile.getAbsolutePath(); } public static void download(String url, DownloadInterface downloadInterface) {