Sfoglia il codice sorgente

修复添加568召回通路错误

apple 1 settimana fa
parent
commit
b6c8b056af

+ 9 - 5
recommend-server-service/src/main/java/com/tzld/piaoquan/recommend/server/service/recall/RecallService.java

@@ -160,11 +160,9 @@ public class RecallService implements ApplicationContextAware {
 
         Set<String> abExpCodes = param.getAbExpCodes();
         if (CollectionUtils.isNotEmpty(abExpCodes)) {
-            if (abExpCodes.contains("568")) {
-                strategies.add(strategyMap.get(PrioriPremiumRovnRecallStrategy.class.getSimpleName()));
-                strategies.add(strategyMap.get(UserCate1RecallStrategyV568.class.getSimpleName()));
-                strategies.add(strategyMap.get(UserCate2RecallStrategyV568.class.getSimpleName()));
-            }
+            // if (abExpCodes.contains("568")) {
+            //     strategies.add(strategyMap.get(PrioriPremiumRovnRecallStrategy.class.getSimpleName()));
+            // }
             // if (abExpCodes.contains("566")){
             //     strategies.add(strategyMap.get(SocialI2IDirectRecallStrategy.class.getSimpleName()));
             //     strategies.add(strategyMap.get(SocialI2IHistoryShareRecallStrategy.class.getSimpleName()));
@@ -172,6 +170,12 @@ public class RecallService implements ApplicationContextAware {
             // }
         }
 
+        boolean isHit568Exp = experimentService.judgeHitAlgoExp(param.getAppType(), param.getRootSessionId(), abExpCodes, "568");
+        if (isHit568Exp) {
+            strategies.add(strategyMap.get(UserCate1RecallStrategyV568.class.getSimpleName()));
+            strategies.add(strategyMap.get(UserCate2RecallStrategyV568.class.getSimpleName()));
+        }
+
         boolean isHit842Exp = experimentService.judgeHitAlgoExp(param.getAppType(), param.getRootSessionId(), abExpCodes, "842");
         if (isHit842Exp) {
             strategies.add(strategyMap.get(UserDeconstructionKeywordsRecallStrategy.class.getSimpleName()));