|
@@ -3734,9 +3734,6 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
}
|
|
}
|
|
|
|
|
|
if(data.getName().endsWith(".jpg") || data.getName().endsWith(".png")){
|
|
if(data.getName().endsWith(".jpg") || data.getName().endsWith(".png")){
|
|
- if(!FileUtils.checkFileSizeIsLimit(data.length(), 1.5, "M")){
|
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_5020);
|
|
|
|
- }
|
|
|
|
BufferedImage read = ImgUtil.read(data);
|
|
BufferedImage read = ImgUtil.read(data);
|
|
int widthImg = read.getWidth();
|
|
int widthImg = read.getWidth();
|
|
int heightImg = read.getHeight();
|
|
int heightImg = read.getHeight();
|