From 33f598c60845d2e08ed75b65f4bd61c42cef110f Mon Sep 17 00:00:00 2001 From: zqy <252236926@qq.com> Date: 星期一, 09 六月 2025 17:09:59 +0800 Subject: [PATCH] 修改权限问题 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/CosController.java | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/CosController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/CosController.java index 896b427..f046916 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/CosController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/CosController.java @@ -30,7 +30,10 @@ } System.out.println("dfsdgd"); HashMap<String,String> map = new HashMap<>(); - map.put("key",key); + + int dotIndex = key.lastIndexOf('/'); + map.put("key", key.substring(dotIndex + 1)); + map.put("path",key); return AjaxResult.success(map); } @@ -86,6 +89,6 @@ throw new RuntimeException(e); } - return AjaxResult.success("鏂囦欢涓婁紶鎴愬姛"); + return AjaxResult.success("鏂囦欢鍒犻櫎鎴愬姛"); } } \ No newline at end of file -- Gitblit v1.9.1