From b81665cdfa0681b8377bfc1e6fbf82a10cb2a166 Mon Sep 17 00:00:00 2001 From: Jinquan_Ou <Jinquan@gdut.com> Date: 星期日, 19 三月 2023 22:30:01 +0800 Subject: [PATCH] plus --- zhang-content/src/main/java/com/ruoyi/service/impl/DownLoadFileServiceImpl.java | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/DownLoadFileServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/DownLoadFileServiceImpl.java index 5d280dc..866a6b5 100644 --- a/zhang-content/src/main/java/com/ruoyi/service/impl/DownLoadFileServiceImpl.java +++ b/zhang-content/src/main/java/com/ruoyi/service/impl/DownLoadFileServiceImpl.java @@ -20,7 +20,7 @@ private String basePath; @Override - public AjaxResult downLoadFile(String path, HttpServletResponse response) { + public void downLoadFile(String path, HttpServletResponse response) { path=basePath+path.substring(8); File file = new File(path); @@ -40,7 +40,6 @@ while(bis.read(buffer) != -1){ os.write(buffer); } - return AjaxResult.success("鎿嶄綔鎴愬姛"); } }catch (Exception e) { e.printStackTrace(); @@ -57,6 +56,5 @@ e.printStackTrace(); } } - return AjaxResult.error("鎿嶄綔澶辫触"); } } -- Gitblit v1.9.1