Commit 0aa4ca8b authored by mengcuiguang's avatar mengcuiguang

修改高额任务权重

parent e0d1dd4e
......@@ -265,19 +265,25 @@ public class VideoAdingManager {
}
// 穿山甲
weightList.add(new WeightBean(csjHighVideoWeight, Constant.CSJ_VEDIO_AD));
weight = weight + csjHighVideoWeight;
LogUtil.d(TAG, "高额任务 -> 权重值:csjVideoWeight:" + csjHighVideoWeight);
if (csjHighVideoWeight > 0) {
weightList.add(new WeightBean(csjHighVideoWeight, Constant.CSJ_VEDIO_AD));
weight = weight + csjHighVideoWeight;
LogUtil.d(TAG, "高额任务 -> 权重值:csjVideoWeight:" + csjHighVideoWeight);
}
// 优量汇
weightList.add(new WeightBean(ylhHighVideoWeight, Constant.YLH_VEDIO_AD));
weight = weight + ylhHighVideoWeight;
LogUtil.d(TAG, "高额任务 -> 权重值:ylhVideoWeight:" + ylhHighVideoWeight);
if (ylhHighVideoWeight > 0) {
weightList.add(new WeightBean(ylhHighVideoWeight, Constant.YLH_VEDIO_AD));
weight = weight + ylhHighVideoWeight;
LogUtil.d(TAG, "高额任务 -> 权重值:ylhVideoWeight:" + ylhHighVideoWeight);
}
// 快手
weightList.add(new WeightBean(ksHighVideoWeight, Constant.KS_VEDIO_AD));
weight = weight + ksHighVideoWeight;
LogUtil.d(TAG, "高额任务 -> 权重值:ksVideoWeight:" + ksHighVideoWeight);
if (ksHighVideoWeight > 0) {
weightList.add(new WeightBean(ksHighVideoWeight, Constant.KS_VEDIO_AD));
weight = weight + ksHighVideoWeight;
LogUtil.d(TAG, "高额任务 -> 权重值:ksVideoWeight:" + ksHighVideoWeight);
}
// 权重随机
if (weightList != null && weightList.size() > 0 && weight > 0) {
......@@ -293,7 +299,7 @@ public class VideoAdingManager {
}
}
}
return "";
return Constant.CSJ_VEDIO_AD;
}
/**
......@@ -508,13 +514,6 @@ public class VideoAdingManager {
* @param bean
*/
private void loadAdVideo(String videoAdType, VideoAdingBean bean) {
if (TextUtils.isEmpty(videoAdType)) {
if (videoAdingListener != null) {
videoAdingListener.videoAdingListenerError(bean.getCarrierType());
}
return;
}
try {
if (TextUtils.equals(videoAdType, Constant.YLH_VEDIO_AD)) {
// 优量汇
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment