Commit 9c45888f authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 6ec7382b
......@@ -323,25 +323,25 @@ public class VideoAdingManager {
weightList.add(new WeightBean(wnWeight, Constant.SDHZ_VEDIO_AD));
weight = weight + wnWeight;
LogUtil.d(TAG, "权重值:sdhzWeight:" + wnWeight);
adList.add("e");
adList.add("d");
}
if (AppConfig.csjFullVedioAdCount > 0) {
weightList.add(new WeightBean(csjFullVideoWeight, Constant.CSJ_FULL_AD));
weight = weight + csjFullVideoWeight;
LogUtil.d(TAG, "权重值:csjFullVideoWeight:" + csjFullVideoWeight);
adList.add("f");
adList.add("e");
}
if (AppConfig.shVideoAdCount > 0) {
weightList.add(new WeightBean(shVideoWeight, Constant.SH_VEDIO_AD));
weight = weight + shVideoWeight;
LogUtil.d(TAG, "权重值:shWeight:" + shVideoWeight);
adList.add("g");
adList.add("f");
}
if (AppConfig.flVideoAdCount > 0) {
weightList.add(new WeightBean(flVideoWeight, Constant.FL_VEDIO_AD));
weight = weight + flVideoWeight;
LogUtil.d(TAG, "权重值:flVideoWeight:" + flVideoWeight);
adList.add("h");
adList.add("g");
}
// 权重随机
......@@ -774,13 +774,13 @@ public class VideoAdingManager {
case "c":
code = Constant.KS_VEDIO_AD;
break;
case "e":
case "d":
code = Constant.SDHZ_VEDIO_AD;
break;
case "f":
case "e":
code = Constant.CSJ_FULL_AD;
break;
case "g":
case "f":
code = Constant.SH_VEDIO_AD;
break;
}
......@@ -799,13 +799,13 @@ public class VideoAdingManager {
case "c":
adtype = Constant.KS_VEDIO_AD;
break;
case "e":
case "d":
adtype = Constant.SDHZ_VEDIO_AD;
break;
case "f":
case "e":
adtype = Constant.CSJ_FULL_AD;
break;
case "g":
case "f":
adtype = Constant.SH_VEDIO_AD;
break;
}
......
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