lyhzzz пре 3 година
родитељ
комит
cce3b04f2d
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      src/main/java/com/fdkankan/fusion/service/impl/ModelServiceImpl.java

+ 1 - 2
src/main/java/com/fdkankan/fusion/service/impl/ModelServiceImpl.java

@@ -70,8 +70,7 @@ public class ModelServiceImpl extends ServiceImpl<IModelMapper, Model> implement
         if(file.isEmpty()){
             throw new BusinessException(ResultCode.UPLOAD_FILE_NO_EXIST);
         }
-        if(file.getSize()>10 * 1024 * 1024 * 1024){
-            System.out.println(file.getSize());
+        if(file.getSize()>10 * 1024 * 1024 * 100){
             throw new BusinessException(ResultCode.UPLOAD_FILE_TO_LONG);
         }
         //获取文件名