diff --git a/src/main/java/com/yutou/qqbot/utlis/AppTools.java b/src/main/java/com/yutou/qqbot/utlis/AppTools.java index 4233c5f..d9be2a4 100644 --- a/src/main/java/com/yutou/qqbot/utlis/AppTools.java +++ b/src/main/java/com/yutou/qqbot/utlis/AppTools.java @@ -207,8 +207,7 @@ public class AppTools { } } file.transferTo(saveFile); - fileName = URLEncoder.encode(fileName, "UTF-8"); System.out.println("上传文件保存路径:" + saveFile.getAbsolutePath()); - return path + fileName; + return saveFile.getAbsolutePath(); } }