Browse Source

state

master
zhaodengke 1 year ago
parent
commit
5485859dc8
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      ruoyi-file/src/main/java/com/ruoyi/file/service/FileService.java

+ 2
- 0
ruoyi-file/src/main/java/com/ruoyi/file/service/FileService.java View File

@@ -49,6 +49,8 @@ public class FileService
Project project = ProjectUtils.Get(token);
if(null == project)
throw new UploadException(HttpStatus.FORBIDDEN.value(), "禁止上传");
if("1".equals(project.getDisabled()))
throw new UploadException(HttpStatus.FORBIDDEN.value(), "上传被禁用");

UploadTask task = new UploadTask();
task.setFile(file)


Loading…
Cancel
Save