Browse Source

代码优化

gaodm 5 years ago
parent
commit
1ef44178fe

+ 1 - 1
prec-service/src/main/java/com/diagbot/service/impl/UploadServiceImpl.java

@@ -48,7 +48,7 @@ public class UploadServiceImpl implements UploadService {
         if (file.isEmpty()) {
         if (file.isEmpty()) {
             return new FileDTO("FAILURE", "文件不能为空");
             return new FileDTO("FAILURE", "文件不能为空");
         }
         }
-        //文件大小上限1M
+        //文件大小上限4M
         if (file.getSize() > 1024 * 1024 * 4) {
         if (file.getSize() > 1024 * 1024 * 4) {
             return new FileDTO("FAILURE", "文件上传失败,超出大小限制4MB");
             return new FileDTO("FAILURE", "文件上传失败,超出大小限制4MB");
         }
         }