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

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java
index 652737c..b68b6f5 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java
@@ -11,7 +11,6 @@
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.MediaType;
-import org.springframework.security.core.parameters.P;
 import org.springframework.web.bind.annotation.*;
 import org.springframework.web.multipart.MultipartFile;
 import com.ruoyi.common.config.RuoYiConfig;
@@ -73,9 +72,9 @@
         }
     }
 
-    @PostMapping("/downLoadFile")
-    public AjaxResult downLoadFile(@RequestBody String path,HttpServletResponse response) throws Exception {
-        return downLoadFileService.downLoadFile(path,response);
+    @GetMapping("/downLoadFile")
+    public void downLoadFile(@PathParam("path") String path, HttpServletResponse response) throws Exception {
+        downLoadFileService.downLoadFile(path,response);
     }
 
 

--
Gitblit v1.9.1