Browse Source

增加日志

xueyiming 1 day ago
parent
commit
70517cf8fa

+ 3 - 1
ad-engine-service/src/main/java/com/tzld/piaoquan/ad/engine/service/score/strategy/RankStrategyBasic.java

@@ -328,7 +328,8 @@ public abstract class RankStrategyBasic implements RankStrategy {
             List<String> customerLayerHourValues = adRedisHelper.mget(customerLayerHourKeys);
             List<String> customerLayerDayKeys = customerIds.stream().map(e -> redisAadCustomerLayerDayKey.replace("{customerId}", String.valueOf(e))).collect(Collectors.toList());
             List<String> customerLayerDayValues = adRedisHelper.mget(customerLayerDayKeys);
-
+            log.info("getCorrectCpaParamMap customerLayerHourKeys={}, customerLayerHourValues={}", customerLayerHourKeys, customerLayerHourValues);
+            log.info("getCorrectCpaParamMap customerLayerDayKeys={}, customerLayerDayValues={}", customerLayerDayKeys, customerLayerDayValues);
             Map<Long, JSONObject> customerLayerMap = new HashMap<>();
             for (int i = 0; i < customerIds.size(); i++) {
                 JSONObject jsonObject = new JSONObject();
@@ -377,6 +378,7 @@ public abstract class RankStrategyBasic implements RankStrategy {
                 } else {
                     jsonObject = adVerLayerMap.get(adPlatformCreativeDTO.getAdVerId());
                 }
+                log.info("getCorrectCpaParamMap cid={}, jsonObject={}", adPlatformCreativeDTO.getCreativeId(), jsonObject);
                 CorrectCpaParam correctCpaParam = new CorrectCpaParam();
                 Integer view = jsonObject.getInteger("view");
                 Double realCtcvrHour = jsonObject.getDouble("realCtcvrHour");