소스 검색

文件清理

chenzl 10 달 전
부모
커밋
e17a020363

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

@@ -53,7 +53,7 @@ public class FileController {
     private final String demoPath = demoDir + File.separator;
     public static final String BASE64_DECODE_ERROR_MSG = "Base64解码失败,请检查你的 %s 是否采用 Base64 + urlEncode 双重编码了!";
 
-    @PostMapping("/fileUpload")
+//    @PostMapping("/fileUpload")
     public ReturnResponse<Object> fileUpload(@RequestParam("file") MultipartFile file) {
         ReturnResponse<Object> checkResult = this.fileUploadCheck(file);
         if (checkResult.isFailure()) {
@@ -74,7 +74,7 @@ public class FileController {
         }
     }
 
-    @GetMapping("/deleteFile")
+//    @GetMapping("/deleteFile")
     public ReturnResponse<Object> deleteFile(HttpServletRequest request, String fileName, String password) {
         ReturnResponse<Object> checkResult = this.deleteFileCheck(request, fileName, password);
         if (checkResult.isFailure()) {
@@ -95,7 +95,7 @@ public class FileController {
     /**
      * 验证码方法
      */
-    @RequestMapping("/deleteFile/captcha")
+//    @RequestMapping("/deleteFile/captcha")
     public void captcha(HttpServletRequest request, HttpServletResponse response) throws Exception {
         if (!ConfigConstants.getDeleteCaptcha()) {
             return;

+ 1 - 1
server/src/main/resources/static/css/theme.css

@@ -1,5 +1,5 @@
 body {
-    padding-top: 70px;
+    
     padding-bottom: 30px;
   }
   

+ 14 - 14
server/src/main/resources/web/main/index.ftl

@@ -122,20 +122,20 @@
     </div>
 
     <#--  预览测试  -->
-    <div class="panel panel-success">
-        <div class="panel-heading">
-            <h3 class="panel-title">上传本地文件预览</h3>
-        </div>
-        <div class="panel-body">
-            <#if fileUploadDisable == false>
-                <form enctype="multipart/form-data" id="fileUpload">
-                    <input type="file" id="file" name="file" style="float: left; margin: 0 auto; font-size:22px;" placeholder="请选择文件"/>
-                    <input type="button" id="fileUploadBtn" class="btn btn-success" value=" 上 传 "/>
-                </form>
-            </#if>
-            <table id="table" data-pagination="true"></table>
-        </div>
-    </div>
+<#--    <div class="panel panel-success">-->
+<#--        <div class="panel-heading">-->
+<#--            <h3 class="panel-title">上传本地文件预览</h3>-->
+<#--        </div>-->
+<#--        <div class="panel-body">-->
+<#--            <#if fileUploadDisable == false>-->
+<#--                <form enctype="multipart/form-data" id="fileUpload">-->
+<#--                    <input type="file" id="file" name="file" style="float: left; margin: 0 auto; font-size:22px;" placeholder="请选择文件"/>-->
+<#--                    <input type="button" id="fileUploadBtn" class="btn btn-success" value=" 上 传 "/>-->
+<#--                </form>-->
+<#--            </#if>-->
+<#--            <table id="table" data-pagination="true"></table>-->
+<#--        </div>-->
+<#--    </div>-->
 </div>
 
 <div class="loading_container" style="position: fixed;">