Commit eb7e8f16 authored by jyx's avatar jyx

CPD模块逻辑优化

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