|
@@ -17,6 +17,8 @@ import com.tzld.piaoquan.ad.engine.service.predict.param.RuleParamHelper;
|
|
import com.tzld.piaoquan.ad.engine.service.predict.param.ThresholdPredictModelParam;
|
|
import com.tzld.piaoquan.ad.engine.service.predict.param.ThresholdPredictModelParam;
|
|
import com.tzld.piaoquan.ad.engine.service.predict.param.request.RoiPredictModelRequestParam;
|
|
import com.tzld.piaoquan.ad.engine.service.predict.param.request.RoiPredictModelRequestParam;
|
|
import com.tzld.piaoquan.ad.engine.service.predict.param.request.ThresholdPredictModelRequestParam;
|
|
import com.tzld.piaoquan.ad.engine.service.predict.param.request.ThresholdPredictModelRequestParam;
|
|
|
|
+import org.slf4j.Logger;
|
|
|
|
+import org.slf4j.LoggerFactory;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
@@ -26,7 +28,7 @@ import java.util.*;
|
|
|
|
|
|
@Service
|
|
@Service
|
|
public class PredictModelServiceImpl implements PredictModelService {
|
|
public class PredictModelServiceImpl implements PredictModelService {
|
|
-
|
|
|
|
|
|
+ private final static Logger log = LoggerFactory.getLogger(PredictModelServiceImpl.class);
|
|
@Value("${ad.own.experiment.tier:ab_test002}")
|
|
@Value("${ad.own.experiment.tier:ab_test002}")
|
|
private String adOwnExperimentTier;
|
|
private String adOwnExperimentTier;
|
|
|
|
|
|
@@ -59,11 +61,11 @@ public class PredictModelServiceImpl implements PredictModelService {
|
|
&&
|
|
&&
|
|
abTestConfigContainer.inWithoutAdTime(requestParam.getAbTestCode(),hourOfDay)){
|
|
abTestConfigContainer.inWithoutAdTime(requestParam.getAbTestCode(),hourOfDay)){
|
|
result.put("ad_predict", 1);
|
|
result.put("ad_predict", 1);
|
|
- result.put("no_ad_strategy","no_ad_time");
|
|
|
|
|
|
+ result.put("no_ad_strategy","no_ad_time_with_time_plan");
|
|
return result;
|
|
return result;
|
|
- }else if((!condition1||(condition1&&!condition2))&&(hourOfDay<8&&hourOfDay>=0)){
|
|
|
|
|
|
+ }else if((!condition1||(condition1&&!condition2))&&(hourOfDay<11&&hourOfDay>=0)){
|
|
result.put("ad_predict", 1);
|
|
result.put("ad_predict", 1);
|
|
- result.put("no_ad_strategy","no_ad_time");
|
|
|
|
|
|
+ result.put("no_ad_strategy","no_ad_time_with_fixed_time");
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
|
|
|