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);
         }
         //获取文件名