瀏覽代碼

打印日志

xueyiming 1 周之前
父節點
當前提交
58c60273c4

+ 5 - 0
ad-engine-service/src/main/java/com/tzld/piaoquan/ad/engine/service/score/strategy/RankStrategyBy688.java

@@ -563,6 +563,8 @@ public class RankStrategyBy688 extends RankStrategyBasic {
                                       Map<String, String> cidFeatureMap) {
                                       Map<String, String> cidFeatureMap) {
         Map<String, String> h1Feature = adVerFeature.getOrDefault("alg_mid_feature_adver_action", new HashMap<>());
         Map<String, String> h1Feature = adVerFeature.getOrDefault("alg_mid_feature_adver_action", new HashMap<>());
         Map<String, String> h2Feature = adVerFeature.getOrDefault("alg_mid_feature_sku_action", new HashMap<>());
         Map<String, String> h2Feature = adVerFeature.getOrDefault("alg_mid_feature_sku_action", new HashMap<>());
+        log.info("h1Feature={}",h1Feature);
+        log.info("h2Feature={}",h2Feature);
         List<String> timeList = Arrays.asList("3d", "7d", "30d");
         List<String> timeList = Arrays.asList("3d", "7d", "30d");
         List<Tuple2<Map<String, String>, String>> featureList = Arrays.asList(
         List<Tuple2<Map<String, String>, String>> featureList = Arrays.asList(
                 new Tuple2<>(h1Feature, "adverid"),
                 new Tuple2<>(h1Feature, "adverid"),
@@ -578,6 +580,9 @@ public class RankStrategyBy688 extends RankStrategyBasic {
                     cidFeatureMap.put("user" + "_" + prefix + "_" + "view" + "_" + time, split[0]);
                     cidFeatureMap.put("user" + "_" + prefix + "_" + "view" + "_" + time, split[0]);
                     cidFeatureMap.put("user" + "_" + prefix + "_" + "click" + "_" + time, split[1]);
                     cidFeatureMap.put("user" + "_" + prefix + "_" + "click" + "_" + time, split[1]);
                     cidFeatureMap.put("user" + "_" + prefix + "_" + "conver" + "_" + time, split[2]);
                     cidFeatureMap.put("user" + "_" + prefix + "_" + "conver" + "_" + time, split[2]);
+                    log.info("user" + "_" + prefix + "_" + "view" + "_" + time, split[0]);
+                    log.info("user" + "_" + prefix + "_" + "click" + "_" + time, split[1]);
+                    log.info("user" + "_" + prefix + "_" + "conver" + "_" + time, split[2]);
                 }
                 }
             }
             }
         }
         }