Commit c40e42a0 authored by jyx's avatar jyx

下载任务优先展示逻辑优化

parent 3d3e9952
......@@ -168,21 +168,41 @@ class TaskCpdFragment : BaseFragment(), TaskView,
}
// 珊瑚和CPD展示顺序
if (CPD_ORDER == "CPD_SYD") {
if (cpdMax > 0) {
when (CPD_ORDER) {
"CPD_SYD" -> {
when {
cpdMax > 0 -> {
// 拉取数组数据
// loadCPDDataList()
// 循环拉取数据
loadCPDDataCycle()
}
} else if (CPD_ORDER == "CPD_SH") {
if (shMax > 0) {
shMax > 0 -> {
loadShDataList()
}
} else {
else -> {
notifyDataAndShowAd()
}
}
}
"CPD_SH" -> {
when {
shMax > 0 -> {
loadShDataList()
}
cpdMax > 0 -> {
loadCPDDataCycle()
}
else -> {
notifyDataAndShowAd()
}
}
}
else -> {
notifyDataAndShowAd()
}
}
}
private fun loadShDataList() {
// 珊瑚CPD广告拉取
......
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