Jelajahi Sumber

1、优化文件上传的判断

rayson 8 bulan lalu
induk
melakukan
e599eb7736

+ 1 - 1
menduner/menduner-system-biz/src/main/java/com/citu/module/menduner/system/controller/app/common/file/AppFileController.java

@@ -39,7 +39,7 @@ public class AppFileController {
     @PostMapping("/upload")
     @Operation(summary = "上传文件")
     public CommonResult<String> uploadFile(AppFileUploadReqVO reqVO) throws Exception {
-        if (!checkFileType(reqVO)) {
+        if (null == reqVO.getPath() || !checkFileType(reqVO)) {
             throw exception(MDE_FILE_FORMAT_ERROR);
         }