|
@@ -343,7 +343,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);
|