|
@@ -346,7 +346,9 @@ public class RecommendService {
|
|
|
// 流量池分发实验组划分
|
|
|
int flowPoolIdChoice = flowPoolIds.get(RandomUtils.nextInt(0, flowPoolIds.size()));
|
|
|
Map<String, List<Integer>> flowPoolConfig = flowPoolConfigService.getFlowPoolConfig();
|
|
|
- if (Objects.equals(Constant.SUPPLY_AB_CODE, param.getAbCode())) {
|
|
|
+ Set<String> abExpCodes = param.getAbExpCodes();
|
|
|
+ if (Objects.nonNull(abExpCodes) && abExpCodes.contains(Constant.SUPPLY_AB_CODE_ID)) {
|
|
|
+// if (Objects.equals(Constant.SUPPLY_AB_CODE, param.getAbCode())) {
|
|
|
List<Integer> supplyFlowPoolIdList = flowPoolConfig.get(FlowPoolConstants.SUPPLY_FLOW_SET_LEVEL);
|
|
|
if (Objects.nonNull(supplyFlowPoolIdList) && !supplyFlowPoolIdList.isEmpty()) {
|
|
|
flowPoolIdChoice = supplyFlowPoolIdList.get(0);
|
|
@@ -362,7 +364,6 @@ public class RecommendService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
// @desc 新的流量池分发实验组划分,每个尾号不同策略分组。 @time 20240318 @author 张博
|
|
|
int lastDigit = RandomUtils.nextInt(0, 10);
|
|
|
param.setLastDigit(lastDigit);
|