|
@@ -63,7 +63,8 @@ public class PredictModelServiceImpl implements PredictModelService {
|
|
|
private String testIds;
|
|
|
@Value("${ad.predict.without.ad.video_ids:0}")
|
|
|
private String withoutAdVideoIds;
|
|
|
-
|
|
|
+ @Value("${ad.predict.old.exp.appId:0,3,4,5,6,17,18,19,21,22}")
|
|
|
+ private String oldExpGroupAppId="";
|
|
|
List<Integer> appIdArr=Arrays.asList(new Integer[]{0,3,4,5,6,17,18,19,21,22});
|
|
|
|
|
|
|
|
@@ -125,8 +126,11 @@ public class PredictModelServiceImpl implements PredictModelService {
|
|
|
Map<String, Object> abtestParam=null;
|
|
|
String midGroup =null;
|
|
|
String shareType =null;
|
|
|
- if(appIdArr.contains(requestParam.getAppType())){
|
|
|
|
|
|
+ String[] appIdArr=oldExpGroupAppId.split(",");
|
|
|
+ List<String> appIdList=Arrays.asList(appIdArr);
|
|
|
+ if(appIdList.contains(requestParam.getAppType().toString())){
|
|
|
+// if(appIdArr.contains(requestParam.getAppType())){
|
|
|
String[] abParamArr = abConfig.getAbParams(requestParam.getAbTestCode(), requestParam.getAbExpInfo());
|
|
|
if (abParamArr == null) {
|
|
|
abParamArr= NewExpUserGroupConfig.newExpUserGroupMap.get(requestParam.getAppType().toString());
|
|
@@ -242,7 +246,8 @@ public class PredictModelServiceImpl implements PredictModelService {
|
|
|
|
|
|
return result;
|
|
|
}catch (Exception e){
|
|
|
- e.printStackTrace();
|
|
|
+ log.error("svc=adPredict appType={} group={} newGroup={} logTraceId={}"
|
|
|
+ ,requestParam.getAppType(),requestParam.getAbTestCode(),requestParam.getNewExpGroup(),requestParam.getLogTraceId());
|
|
|
result.put("ad_predict", 1);
|
|
|
result.put("no_ad_strategy", "error");
|
|
|
return result;
|