Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_goodmoney
Commits
c40e42a0
Commit
c40e42a0
authored
Mar 11, 2021
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下载任务优先展示逻辑优化
parent
3d3e9952
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
11 deletions
+31
-11
TaskCpdFragment.kt
...n/java/com/mints/goodmoney/ui/fragment/TaskCpdFragment.kt
+31
-11
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/TaskCpdFragment.kt
View file @
c40e42a0
...
...
@@ -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广告拉取
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment