lyhzzz 3 years ago
parent
commit
cce3b04f2d

+ 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()){
         if(file.isEmpty()){
             throw new BusinessException(ResultCode.UPLOAD_FILE_NO_EXIST);
             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);
             throw new BusinessException(ResultCode.UPLOAD_FILE_TO_LONG);
         }
         }
         //获取文件名
         //获取文件名