Commit 264ad37d authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 0b2b2462
......@@ -9,8 +9,8 @@ android {
applicationId "com.mints.goldspace"
minSdkVersion rootProject.ext.androidMinSdkVersion
targetSdkVersion rootProject.ext.androidTargetSdkVersion
versionCode 36
versionName "1.3.6"
versionCode 37
versionName "1.3.7"
flavorDimensions "default"
// dex突破65535的限制
......
......@@ -215,26 +215,6 @@ public class VideoAdingManager {
* <p>
* 穿山甲>优量汇>穿山甲全屏>快手>珊瑚>闪电盒子>枫岚(兜底)
*/
private String getNextAdType() {
String nextAdType;
if (AppConfig.csjVideoAdCount > 0) {
nextAdType = Constant.CSJ_VEDIO_AD;
} else if (AppConfig.ylhAdCount > 0) {
nextAdType = Constant.YLH_VEDIO_AD;
} else if (AppConfig.csjFullVedioAdCount > 0) {
nextAdType = Constant.CSJ_FULL_AD;
} else if (AppConfig.wnVideoAdCount > 0) {
nextAdType = Constant.SDHZ_VEDIO_AD;
} else if (AppConfig.shVideoAdCount > 0) {
nextAdType = Constant.SH_VEDIO_AD;
} else if (AppConfig.ksVideoAdCount > 0) {
nextAdType = Constant.KS_VEDIO_AD;
} else {
nextAdType = Constant.FL_VEDIO_AD;
}
return nextAdType;
}
private String getNextFailAdType() {
String nextAdType = Constant.FL_VEDIO_AD;
try {
......@@ -265,7 +245,9 @@ public class VideoAdingManager {
}
isHighWeight = false;
currentRandomAdList.add(getCode(adType));
if (currentRandomAdList != null) {
currentRandomAdList.add(getCode(adType));
}
LogUtil.d(TAG, "权重结果返回的广告类型:" + adType);
return adType;
......
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