Explorar o código

feat:添加日志

zhaohaipeng hai 10 meses
pai
achega
6bbec3acfc

+ 0 - 8
ad-engine-service/src/main/java/com/tzld/piaoquan/ad/engine/service/score/VideoAdThompsonScorerV2.java

@@ -128,7 +128,6 @@ public class VideoAdThompsonScorerV2 {
                 ext.put("pairOrSingle", "single");
                 ext.put("cidStatistic", JSON.toJSONString(cidStatistics));
                 ext.put("cpa", cpa);
-                ext.put("abCode", 663);
             } catch (Exception e) {
                 log.error("svc=663exp, error: ", e);
             }
@@ -364,7 +363,6 @@ public class VideoAdThompsonScorerV2 {
                 ext.put("cidStatistic", JSON.toJSONString(cidStatistics));
                 ext.put("vidCidStatistic", JSON.toJSONString(vidCidStatistics));
                 ext.put("cpa", cpa);
-                ext.put("abCode", 666);
             } catch (Exception e) {
                 log.error("svc=666exp, error: ", e);
             }
@@ -397,9 +395,6 @@ public class VideoAdThompsonScorerV2 {
         for (AdRankItem adRankItem : result) {
             adRankItem.setVideoId(param.getVideoId());
             adRankItem.setScore_type(699);
-            if (MapUtils.isNotEmpty(adRankItem.getExt())) {
-                adRankItem.getExt().put("abCode", 699);
-            }
         }
 
         return result;
@@ -466,7 +461,6 @@ public class VideoAdThompsonScorerV2 {
                 ext.put("vidCidStatistic", JSON.toJSONString(vidCidStatistic));
                 ext.put("scoreCalcWay", scoreCalcWay);
                 ext.put("cpa", cpa);
-                ext.put("abCode", 670);
             } catch (Exception e) {
                 log.error("svc=670exp, error: ", e);
             }
@@ -613,7 +607,6 @@ public class VideoAdThompsonScorerV2 {
 
     private Map<String, Object> extMap(CreativeStatistic statistic, String abCode, Double cpa, Double viewThreshold, Double alpha, Double beta, Double beta_k) {
         Map<String, Object> map = new HashMap<>();
-        map.put("abCode", abCode);
         if (Objects.nonNull(viewThreshold)) {
             map.put("viewThreshold", viewThreshold);
         }
@@ -678,7 +671,6 @@ public class VideoAdThompsonScorerV2 {
                 ext.put("cidStatistic", JSON.toJSONString(cidStatistic));
                 ext.put("vidCidStatistic", JSON.toJSONString(vidCidStatistic));
                 ext.put("cpa", cpa);
-                ext.put("abCode", 672);
             } catch (Exception e) {
                 log.error("svc=672exp, error: ", e);
             }