소스 검색

添加文件类型判定

syh 5 년 전
부모
커밋
ded2bc9656
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/fileupload/controller/FileController.java

+ 1 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/fileupload/controller/FileController.java

@@ -26,7 +26,7 @@ public class FileController {
     }
 
     @PostMapping("file/insert")
-    public Map<String, Object> insertFile(String code, String url) {
+    public Map<String, Object> insertFile(String code, String url) throws Exception {
         LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal();
         return materialInfoService.insert(user.getId(), code, url);
     }