|
@@ -57,12 +57,11 @@ public class RecommendService {
|
|
@ApolloJsonValue("${app_ab_code:{}}")
|
|
@ApolloJsonValue("${app_ab_code:{}}")
|
|
private Map<String, Map<String, Map<String, String>>> appAbCodeMap = new HashMap<>();
|
|
private Map<String, Map<String, Map<String, String>>> appAbCodeMap = new HashMap<>();
|
|
|
|
|
|
- private int[] flowPoolIdList = {7, 8, 9, 10, 11, 12, 13, 14, 15, 16};
|
|
|
|
-
|
|
|
|
|
|
+ @ApolloJsonValue("${flow.pool.ids:[7, 8, 9, 10, 11, 12, 13, 14, 15, 16]}")
|
|
|
|
+ private List<Integer> flowPoolIds;
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private FlowPoolConfigService flowPoolConfigService;
|
|
private FlowPoolConfigService flowPoolConfigService;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private RecallService recallService;
|
|
private RecallService recallService;
|
|
@Autowired
|
|
@Autowired
|
|
@@ -243,7 +242,7 @@ public class RecommendService {
|
|
}
|
|
}
|
|
|
|
|
|
// 流量池分发实验组划分
|
|
// 流量池分发实验组划分
|
|
- int flowPoolIdChoice = flowPoolIdList[RandomUtils.nextInt(0, flowPoolIdList.length - 1)];
|
|
|
|
|
|
+ int flowPoolIdChoice = flowPoolIds.get(RandomUtils.nextInt(0, flowPoolIds.size() - 1));
|
|
param.setFlowPoolAbtestGroup("control_group");
|
|
param.setFlowPoolAbtestGroup("control_group");
|
|
Map<String, List<Integer>> flowPoolConfig = flowPoolConfigService.getFlowPoolConfig();
|
|
Map<String, List<Integer>> flowPoolConfig = flowPoolConfigService.getFlowPoolConfig();
|
|
for (Map.Entry<String, List<Integer>> entry : flowPoolConfig.entrySet()) {
|
|
for (Map.Entry<String, List<Integer>> entry : flowPoolConfig.entrySet()) {
|