|
@@ -2791,7 +2791,7 @@ public class TaskController extends BladeController {
|
|
|
Cell cell = row.getCell(x1 - 1);
|
|
|
if (cell != null) {
|
|
|
String value = dataMap.getOrDefault(keys, StringPool.EMPTY).toString();
|
|
|
- if (value.startsWith("http")) {
|
|
|
+ if (value.startsWith("http")&&RegexUtil.find("(?i)[.](jpeg|png|jpg)",value)) {
|
|
|
InputStream imageIn = CommonUtil.getOSSInputStream(value);
|
|
|
if (imageIn != null) {
|
|
|
byte[] bytes = CommonUtil.compressImage(IOUtils.toByteArray(imageIn));
|