瀏覽代碼

中间计量单

yangyj 11 月之前
父節點
當前提交
b3ac56c51e

+ 1 - 1
blade-service/blade-meter/src/main/java/org/springblade/meter/controller/TaskController.java

@@ -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));