From 48651c384f44a6fc050addc9f688756dcf3ebb48 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Fri, 28 Jan 2022 20:26:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=96=87=E4=BB=B6=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yutou/qqbot/utlis/AppTools.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); } }