|
@@ -184,53 +184,13 @@ public class RecallService implements ApplicationContextAware {
|
|
|
strategies.addAll(getRegionRecallStrategy(param));
|
|
|
}
|
|
|
// 命中用户黑名单不走流量池
|
|
|
- if (!param.isRiskUser() && (!hitUserBlacklist || !isInBlacklist)) {
|
|
|
- Set<String> abExpCodes = param.getAbExpCodes();
|
|
|
- if (Objects.nonNull(abExpCodes) && abExpCodes.contains(Constant.SUPPLY_AB_CODE_ID)) {
|
|
|
-// if (Objects.equals(Constant.SUPPLY_AB_CODE, abCode)) {
|
|
|
- // 供给流量池策略 648 实验 random
|
|
|
- strategies.add(strategyMap.get(FlowPoolWithLevelSupplyRecallStrategy.class.getSimpleName()));
|
|
|
- //2:通过“流量池标记”控制“流量池召回子策略” 其中有9组会走EXPERIMENTAL_FLOW_SET_LEVEL 有1组会走EXPERIMENTAL_FLOW_SET_LEVEL_SCORE
|
|
|
- } else if ("60116".equals(abCode)) {
|
|
|
- int lastDigit = param.getLastDigit();
|
|
|
- String lastDigitAB = lastDigitAbcode != null ? lastDigitAbcode.getOrDefault(lastDigit, "default") : "default";
|
|
|
- switch (lastDigitAB) {
|
|
|
- case "random":
|
|
|
- strategies.add(strategyMap.get(FlowPoolWithLevelRecallStrategyFilterDigit.class.getSimpleName()));
|
|
|
- break;
|
|
|
- case "tomson":
|
|
|
- strategies.add(strategyMap.get(FlowPoolWithLevelRecallStrategyTomsonFilterDigitV2.class.getSimpleName()));
|
|
|
- break;
|
|
|
- case "score":
|
|
|
- strategies.add(strategyMap.get(FlowPoolWithLevelScoreRecallStrategy.class.getSimpleName()));
|
|
|
- break;
|
|
|
- default:
|
|
|
- strategies.add(strategyMap.get(FlowPoolWithLevelRecallStrategyFilterDigit.class.getSimpleName()));
|
|
|
- break;
|
|
|
- }
|
|
|
+ if (!param.isRiskUser() && (!hitUserBlacklist || !isInBlacklist)) {
|
|
|
+ if (param.getFlowPoolAbtestGroup().equals(FlowPoolConstants.EXPERIMENTAL_FLOW_SET_LEVEL)) {
|
|
|
+ strategies.add(strategyMap.get(FlowPoolWithLevelRecallStrategyTomson.class.getSimpleName()));
|
|
|
+ } else if (param.getFlowPoolAbtestGroup().equals(FlowPoolConstants.EXPERIMENTAL_FLOW_SET_LEVEL_SCORE)) {
|
|
|
+ strategies.add(strategyMap.get(FlowPoolWithLevelScoreRecallStrategy.class.getSimpleName()));
|
|
|
} else {
|
|
|
- if (param.getFlowPoolAbtestGroup().equals(FlowPoolConstants.EXPERIMENTAL_FLOW_SET_LEVEL)) {
|
|
|
- strategies.add(strategyMap.get(QuickFlowPoolWithLevelRecallStrategy.class.getSimpleName()));
|
|
|
- if ("60126".equals(abCode) || "60125".equals(abCode) || "60124".equals(abCode)
|
|
|
- || "60105".equals(abCode) || "60106".equals(abCode) || "60107".equals(abCode)
|
|
|
- || "60112".equals(abCode) || "60113".equals(abCode) || "60114".equals(abCode)
|
|
|
- || "60115".equals(abCode) || "60117".equals(abCode) || "60118".equals(abCode)
|
|
|
- || "60119".equals(abCode) || "60150".equals(abCode) || "60151".equals(abCode)
|
|
|
- || "60654".equals(abCode) || "60655".equals(abCode) || "60656".equals(abCode)
|
|
|
- || "60121".equals(abCode)
|
|
|
- ) {
|
|
|
- strategies.add(strategyMap.get(FlowPoolWithLevelRecallStrategyTomson.class.getSimpleName()));
|
|
|
- } else {
|
|
|
- strategies.add(strategyMap.get(FlowPoolWithLevelRecallStrategy.class.getSimpleName()));
|
|
|
- }
|
|
|
- } else if (param.getFlowPoolAbtestGroup().equals(FlowPoolConstants.EXPERIMENTAL_FLOW_SET_LEVEL_SCORE)) {
|
|
|
- strategies.add(strategyMap.get(QuickFlowPoolWithLevelScoreRecallStrategy.class.getSimpleName()));
|
|
|
- // 在执行中
|
|
|
- strategies.add(strategyMap.get(FlowPoolWithLevelScoreRecallStrategy.class.getSimpleName()));
|
|
|
- } else {
|
|
|
- strategies.add(strategyMap.get(QuickFlowPoolWithScoreRecallStrategy.class.getSimpleName()));
|
|
|
- strategies.add(strategyMap.get(FlowPoolWithScoreRecallStrategy.class.getSimpleName()));
|
|
|
- }
|
|
|
+ strategies.add(strategyMap.get(FlowPoolWithScoreRecallStrategy.class.getSimpleName()));
|
|
|
}
|
|
|
}
|
|
|
|