zx 2 роки тому
батько
коміт
98c4b35b44

+ 2 - 2
src/main/java/com/steerinfo/dil/util/UploadUtils.java

@@ -31,8 +31,8 @@ import java.io.IOException;
                 String fileId = idGenerator.getNextStr();
                 String fileName = file.getOriginalFilename();
                 String ext = Files.getFileExtension(fileName.toLowerCase());
-                if (file.getSize() / 1024L >= 1024L) {
-                    throw new BaseException("上传失败,图片大小不能超过1MB");
+                if (file.getSize() / 1024L >= 3072L) {
+                    throw new BaseException("上传失败,图片大小不能超过3MB");
                 }
 
                 try {

+ 1 - 0
src/main/resources/application-prod.yml

@@ -24,6 +24,7 @@ spring:
 
 piction:
     path: /shared
+#  path: C:\Users\zx\Pictures\test
 
 openfeign:
   WmshboundFeign: