潘志宝
7 天以前 f7819b4bc08d3ee2fc391b79da8480e7c85d64fd
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/collector/HttpCollector.java
@@ -8,6 +8,7 @@
import com.iailab.framework.common.constant.CommonConstant;
import com.iailab.module.data.channel.http.collector.asdb.HttpCollectorForAsdb;
import com.iailab.module.data.channel.http.collector.asdb.HttpCollectorForAsdc;
import com.iailab.module.data.channel.http.collector.asdb.HttpCollectorForAsde;
import com.iailab.module.data.channel.http.collector.ihdb.HttpCollectorForIhd;
import com.iailab.module.data.channel.http.entity.HttpApiEntity;
@@ -37,6 +38,9 @@
    @Autowired
    private HttpCollectorForAsde httpCollectorForAsde;
    @Autowired
    private HttpCollectorForAsdc httpCollectorForAsdc;
    public Object getTagValue(String apiId, String tag) {
        HttpApiEntity httpApi = httpApiService.getFromCatch(apiId);
        if (httpApi == null) {
@@ -51,6 +55,8 @@
            valueMap = httpCollectorForAsdb.getTagValues(apiId, tagNames);
        } else if (SourceApiEnum.ASDE.getCode().equals(httpApi.getCode())) {
            valueMap = httpCollectorForAsde.getTagValues(apiId, tagNames);
        } else if (SourceApiEnum.ASDC.getCode().equals(httpApi.getCode())) {
            valueMap = httpCollectorForAsdc.getTagValues(apiId, tagNames);
        }
        if (valueMap.get(tag) == null) {
            return CommonConstant.BAD_VALUE;