From 6b13839488edcd06046e26a41fe897358176689c Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期五, 13 十二月 2024 17:56:41 +0800
Subject: [PATCH] 采集质量

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/collector/ihdb/HttpCollectorForIhd.java |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/collector/ihdb/HttpCollectorForIhd.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/collector/ihdb/HttpCollectorForIhd.java
index 5dde833..a37fe83 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/collector/ihdb/HttpCollectorForIhd.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/collector/ihdb/HttpCollectorForIhd.java
@@ -12,6 +12,7 @@
 import com.iailab.module.data.common.utils.HttpRequest;
 import com.iailab.module.data.common.utils.TagUtils;
 import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.data.redis.core.BoundHashOperations;
 import org.springframework.data.redis.core.RedisTemplate;
@@ -265,7 +266,12 @@
             StringBuilder tagSb = new StringBuilder();
             tagSb.append("[");
             for (int i = 0; i < params.size(); i++) {
-                Map<String, Object> queryParams = new HashMap<>();
+                if (StringUtils.isBlank(params.get(i)[1].toString()) ||
+                        StringUtils.isBlank(params.get(i)[2].toString()) ||
+                        StringUtils.isBlank(params.get(i)[3].toString())) {
+                    continue;
+                }
+                Map<String, Object> queryParams = new HashMap<>(3);
                 queryParams.put(N, params.get(i)[1]);
                 queryParams.put(D, params.get(i)[2]);
                 queryParams.put(P, params.get(i)[3]);

--
Gitblit v1.9.3