|
@@ -67,6 +67,9 @@ public class RecommendService {
|
|
|
@ApolloJsonValue("${city_code:[]}")
|
|
|
private Set<String> cityCodes;
|
|
|
|
|
|
+ @ApolloJsonValue("${new.exp.list:[6]}")
|
|
|
+ private Set<Integer> newExpList;
|
|
|
+
|
|
|
@Autowired
|
|
|
private FlowPoolConfigService flowPoolConfigService;
|
|
|
@Autowired
|
|
@@ -390,9 +393,11 @@ public class RecommendService {
|
|
|
recallParam.setAppType(param.getAppType());
|
|
|
// hard code 算法实验配置化之前,复用abcode做AB验证
|
|
|
// note 避免非实验产品被覆盖
|
|
|
- if (param.getAppType() == AppTypeEnum.SHORT_VIDEO.getCode()) {
|
|
|
- if (MapUtils.isNotEmpty(param.getExpIdMap())) {
|
|
|
+ if (newExpList.contains(param.getAppType())) {
|
|
|
+ if (MapUtils.isNotEmpty(param.getExpIdMap()) && param.getExpIdMap().containsKey("recall")) {
|
|
|
recallParam.setAbCode(param.getExpIdMap().get("recall"));
|
|
|
+ } else {
|
|
|
+ recallParam.setAbCode("");
|
|
|
}
|
|
|
} else {
|
|
|
recallParam.setAbCode(param.getAbCode());
|
|
@@ -437,9 +442,12 @@ public class RecommendService {
|
|
|
rankParam.setRecallResult(recallResult);
|
|
|
// hard code 算法实验配置化之前,复用abcode做AB验证
|
|
|
// note 避免非实验产品被覆盖
|
|
|
- if (param.getAppType() == AppTypeEnum.SHORT_VIDEO.getCode()) {
|
|
|
- if (MapUtils.isNotEmpty(param.getExpIdMap())) {
|
|
|
+ if (newExpList.contains(param.getAppType())) {
|
|
|
+ if (MapUtils.isNotEmpty(param.getExpIdMap())
|
|
|
+ && param.getExpIdMap().containsKey("rank")) {
|
|
|
rankParam.setAbCode(param.getExpIdMap().get("rank"));
|
|
|
+ } else {
|
|
|
+ rankParam.setAbCode("");
|
|
|
}
|
|
|
} else {
|
|
|
rankParam.setAbCode(param.getAbCode());
|