Commit 6132bb45 authored by mengcuiguang's avatar mengcuiguang

优化高额任务

parent 264ad37d
......@@ -163,38 +163,8 @@ public class VideoAdingManager {
this.activity = activityWeakReference.get();
isVideoAdDownload = false;
if (AppConfig.flVideoFlag) {
// 先展示枫岚视频
firstLoadFlVideo(bean);
} else {
// 权重自有逻辑
loadAdVideo(getVideoAdType(), bean);
}
}
/**
* 根据载体优先加载枫岚
*
* @param bean
*/
private void firstLoadFlVideo(VideoAdingBean bean) {
String adType;
switch (bean.getCarrierType()) {
case Constant.CARRIER_VERSUS_VIDEO:
case Constant.CARRIER_HOMEWATER:
case Constant.CARRIER_WALK:
case Constant.CARRIER_WALK_BUBBLE:
case Constant.CARRIER_SIGNIN_HOMEPAGE_CARD:
case Constant.CARRIER_OFFLINE_DOUBLE:
case Constant.CARRIER_EATMEAL_SUBSIDY:
adType = Constant.FL_VEDIO_AD;
// ToastUtil.showLong(activity, "载体优先类型:" + Constant.FL_VEDIO_AD);
break;
default:
adType = getVideoAdType();
break;
}
loadAdVideo(adType, bean);
// 权重自有逻辑
loadAdVideo(getVideoAdType(), bean);
}
/**
......@@ -216,6 +186,11 @@ public class VideoAdingManager {
* 穿山甲>优量汇>穿山甲全屏>快手>珊瑚>闪电盒子>枫岚(兜底)
*/
private String getNextFailAdType() {
// 高额任务时 会为空
if (adList == null || currentRandomAdList == null) {
return getHighWeight();
}
String nextAdType = Constant.FL_VEDIO_AD;
try {
List<String> tempList = listrem(adList, currentRandomAdList);
......
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