zhaohaipeng 10 mesiacov pred
rodič
commit
77b5e514a2

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

@@ -76,7 +76,7 @@ public class VideoAdThompsonScorerV2 {
     //             Map<String, Object> ext = this.extMap(statistic, "663", dto.getCpa(), null,
     //                     exp663Param.getOrDefault("alpha", 1d), exp663Param.getOrDefault("beta", 10000d), null);
     //             ext.put("s1", s1);
-    //             item.setExt(ext);
+    //             item.setFeature(ext);
     //             item.setScore(score);
     //             item.setScore_type(663);
     //         } catch (Exception e) {
@@ -184,7 +184,7 @@ public class VideoAdThompsonScorerV2 {
                 ext.put("s1", s1);
                 item.setCreativeCode(dto.getCreativeCode());
                 item.setWeight(dto.getWeight());
-                item.setExt(ext);
+                item.setFeature(ext);
                 item.setScore_type(664);
             } catch (Exception e) {
                 log.error("svc=thompsonScorerByExp664 {}", gson.toJson(e.getStackTrace()));
@@ -233,7 +233,7 @@ public class VideoAdThompsonScorerV2 {
                         exp665Param.getOrDefault("alpha", 1d), exp665Param.getOrDefault("beta", 10000d), null);
                 ext.put("s1", s1);
                 item.setCreativeCode(dto.getCreativeCode());
-                item.setExt(ext);
+                item.setFeature(ext);
             } catch (Exception e) {
                 log.error("svc=thompsonScorerByExp665 {}", gson.toJson(e.getStackTrace()));
             }
@@ -302,7 +302,7 @@ public class VideoAdThompsonScorerV2 {
     //                     exp663Param.getOrDefault("beta", 10000d), exp666Param.getOrDefault("beta_k",9d));
     //             ext.put("s1", s1);
     //             ext.put("group_field", statisticType);
-    //             item.setExt(ext);
+    //             item.setFeature(ext);
     //
     //         }catch (Exception e){
     //             log.error("svc=thompsonScorerByExp666 {}",gson.toJson(e.getStackTrace()));
@@ -370,7 +370,7 @@ public class VideoAdThompsonScorerV2 {
             item.setCpa(cpa);
             item.setAdId(dto.getCreativeId());
             item.setScore(score);
-            item.setExt(ext);
+            item.setFeature(ext);
             item.setVideoId(param.getVideoId());
             item.setScore_type(666);
             item.setWeight(dto.getWeight());
@@ -465,7 +465,7 @@ public class VideoAdThompsonScorerV2 {
             item.setAdId(dto.getCreativeId());
             item.setWeight(dto.getWeight());
             item.setScore(score);
-            item.setExt(ext);
+            item.setFeature(ext);
             item.setBid1(dto.getBid1());
             item.setBid2(dto.getBid2());
             item.setCreativeCode(dto.getCreativeCode());
@@ -528,7 +528,7 @@ public class VideoAdThompsonScorerV2 {
             item.setAdId(dto.getCreativeId());
             item.setWeight(dto.getWeight());
             item.setScore(score);
-            item.setExt(ext);
+            item.setFeature(ext);
             item.setBid1(dto.getBid1());
             item.setBid2(dto.getBid2());
             item.setCreativeCode(dto.getCreativeCode());
@@ -682,7 +682,7 @@ public class VideoAdThompsonScorerV2 {
             item.setCpa(cpa);
             item.setAdId(dto.getCreativeId());
             item.setScore(score);
-            item.setExt(ext);
+            item.setFeature(ext);
             item.setVideoId(param.getVideoId());
             item.setScore_type(scoreType);
             item.setWeight(dto.getWeight());

+ 1 - 1
ad-engine-service/src/main/java/com/tzld/piaoquan/ad/engine/service/score/impl/RankServiceImpl.java

@@ -184,7 +184,7 @@ public class RankServiceImpl implements RankService {
             }
 
             for (AdRankItem adRankItem : rankResult) {
-                adRankItem.getExt().put("userAdFeature", JSON.toJSONString(userAdFeature));
+                adRankItem.getFeature().put("userAdFeature", JSON.toJSONString(userAdFeature));
             }
             // 日志上报
             logHubService.scoreLogUpload(param, request.getAdIdList(), rankResult, request,