Commit 9c45888f authored by mengcuiguang's avatar mengcuiguang

代码优化

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