Browse Source

精简压缩包解析的无用代码
精简压缩包解析的无用代码

Signed-off-by: 高雄 <admin@cxcp.com>

高雄 2 years ago
parent
commit
f771d361ae
1 changed files with 1 additions and 5 deletions
  1. 1 5
      server/src/main/java/cn/keking/web/controller/FileController.java

+ 1 - 5
server/src/main/java/cn/keking/web/controller/FileController.java

@@ -140,7 +140,7 @@ public class FileController {
      */
     private ReturnResponse<Object> deleteFileCheck(String fileName) {
         if (ObjectUtils.isEmpty(fileName)) {
-            return ReturnResponse.failure("文件名为空!");
+            return ReturnResponse.failure("文件名为空,删除失败!");
         }
         try {
             fileName = WebUtils.decodeUrl(fileName);
@@ -160,10 +160,6 @@ public class FileController {
 
     @GetMapping("/directory")
     public Object directory(String urls) {
-        ReturnResponse<Object> checkResult = this.deleteFileCheck(urls);
-        if (checkResult.isFailure()) {
-            return checkResult;
-        }
         String fileUrl;
         try {
             fileUrl = WebUtils.decodeUrl(urls);