From f4c591df7d87b6276caa9aa09602c128bedcf738 Mon Sep 17 00:00:00 2001 From: Jinquan_Ou <Jinquan@gdut.com> Date: 星期三, 22 三月 2023 14:52:21 +0800 Subject: [PATCH] 导入接口 --- 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