Sfoglia il codice sorgente

feat:修改补数据脚本

zhaohaipeng 1 mese fa
parent
commit
ba061fc754

+ 6 - 1
src/main/java/examples/extractor/v20250218/ExtractFeature20250218.java

@@ -195,11 +195,16 @@ public class ExtractFeature20250218 {
         Map<String, Map<String, Object>> featureMaps = new HashMap<>();
         featureMaps.put("c7", c7Feature);
         featureMaps.put("c8", c8Feature);
+
         List<String> indexList = Arrays.asList("share", "return");
+
         for (Map.Entry<String, Map<String, Object>> entry : featureMaps.entrySet()) {
             Map<String, Object> feature = entry.getValue();
+
             for (String index : indexList) {
+
                 String key = entry.getKey() + "_" + index;
+
                 if (feature.containsKey(index)) {
                     Map<String, String[]> cfMap = new HashMap<>();
                     String[] entries = feature.get(index).toString().split(",");
@@ -226,7 +231,7 @@ public class ExtractFeature20250218 {
         if (StringUtils.isBlank(vid)) {
             return;
         }
-        for (String key : Arrays.asList("c6", "c7")) {
+        for (String key : Arrays.asList("c7", "c8")) {
             for (String action : Arrays.asList("share", "return")) {
                 String featureKey = key + "_" + action;
                 Map<String, String[]> cfMap = map.getOrDefault(featureKey, new HashMap<>());