Browse Source

放开黑烟的照片筛选限制

459242451@qq.com 3 years ago
parent
commit
1c12febb40

+ 3 - 3
ruoyi-admin/src/main/java/com/ruoyi/web/controller/gas/GasCommonController.java

@@ -511,9 +511,9 @@ public class GasCommonController {
                         for (Object o : imgUrlList) {
                             // 只保存细节、全貌开头的图片
                             String s = Convert.toStr(o);
-                            if (StrUtil.containsAny(s, "全貌", "细节")) {
-                                newImgList.add("http://" + s);
-                            }
+//                            if (StrUtil.containsAny(s, "全貌", "细节")) {
+                            newImgList.add("http://" + s);
+//                            }
                         }
                         afterDataMap.put("sootImgUrl", StrUtil.isNotBlank(sootImgUrl) ? "http://" + sootImgUrl : "");
                         afterDataMap.put("allImgUrl", newImgList);

+ 3 - 3
ruoyi-admin/src/main/java/com/ruoyi/web/job/CanalScheduling.java

@@ -228,9 +228,9 @@ public class CanalScheduling implements Runnable, ApplicationContextAware {
                                 for (Object o : imgUrlList) {
                                     // 只保存细节、全貌开头的图片
                                     String s = Convert.toStr(o);
-                                    if (StrUtil.containsAny(s, "全貌", "细节")) {
-                                        newImgList.add("http://" + s);
-                                    }
+//                                    if (StrUtil.containsAny(s, "全貌", "细节")) {
+                                    newImgList.add("http://" + s);
+//                                    }
                                 }
                                 afterDataMap.put("sootImgUrl", StrUtil.isNotBlank(sootImgUrl) ? "http://" + sootImgUrl : "");
                                 afterDataMap.put("allImgUrl", newImgList);

+ 3 - 3
ruoyi-admin/src/main/java/com/ruoyi/web/service/Impl/GasCommonServiceImpl.java

@@ -143,9 +143,9 @@ public class GasCommonServiceImpl implements IGasCommonService {
                             for (Object o : imgUrlList) {
                                 // 只保存细节、全貌开头的图片
                                 String s = Convert.toStr(o);
-                                if (StrUtil.containsAny(s, "全貌", "细节")) {
-                                    newImgList.add("http://" + s);
-                                }
+//                                if (StrUtil.containsAny(s, "全貌", "细节")) {
+                                newImgList.add("http://" + s);
+//                                }
                             }
                         }
                         afterDataMap.put("sootImgUrl", StrUtil.isNotBlank(sootImgUrl) ? "http://" + sootImgUrl : "");