From 13c9e4032de40598787a453de77ba0db94666664 Mon Sep 17 00:00:00 2001 From: wjli <591616088@qq.com> Date: 星期四, 25 五月 2023 15:53:07 +0800 Subject: [PATCH] 接货图片和签收图片的完善 --- xboot-modules/xboot-file/src/main/java/cn/exrick/xboot/file/manage/impl/LocalFileManage.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/xboot-modules/xboot-file/src/main/java/cn/exrick/xboot/file/manage/impl/LocalFileManage.java b/xboot-modules/xboot-file/src/main/java/cn/exrick/xboot/file/manage/impl/LocalFileManage.java index 5913343..19a64b7 100644 --- a/xboot-modules/xboot-file/src/main/java/cn/exrick/xboot/file/manage/impl/LocalFileManage.java +++ b/xboot-modules/xboot-file/src/main/java/cn/exrick/xboot/file/manage/impl/LocalFileManage.java @@ -17,6 +17,7 @@ import org.springframework.web.multipart.MultipartFile; import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.Part; import java.io.*; /** @@ -60,7 +61,7 @@ if (f.exists()) { throw new XbootException("鏂囦欢鍚嶅凡瀛樺湪"); } - try { + try{ file.transferTo(f); return path + "/" + key; } catch (IOException e) { -- Gitblit v1.9.1