|
@@ -175,6 +175,9 @@ public class ToolExportServiceImpl implements ToolExportService {
|
|
|
throw new RuntimeException("文件拷贝出错", e);
|
|
|
}
|
|
|
}
|
|
|
+ if (targetSheetFile.length() < 3 * 1024) {
|
|
|
+ throw new StatusException("原图图片大小有误");
|
|
|
+ }
|
|
|
List<String> slices = pg.getSlicePath();
|
|
|
if (CollectionUtils.isNotEmpty(slices)) {
|
|
|
for (String slice : slices) {
|
|
@@ -201,7 +204,7 @@ public class ToolExportServiceImpl implements ToolExportService {
|
|
|
}
|
|
|
}
|
|
|
if (targetSliceFile.length() < 3 * 1024) {
|
|
|
- throw new StatusException("文件大小有误");
|
|
|
+ throw new StatusException("拼接图片大小有误");
|
|
|
}
|
|
|
}
|
|
|
}
|