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