Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_youyou
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_youyou
Commits
eb7e8f16
Commit
eb7e8f16
authored
Mar 12, 2021
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CPD模块逻辑优化
parent
5e1e1257
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
11 deletions
+31
-11
TaskCpdFragment.kt
...ain/java/com/wenshu/youyou/ui/fragment/TaskCpdFragment.kt
+31
-11
No files found.
app/src/main/java/com/wenshu/youyou/ui/fragment/TaskCpdFragment.kt
View file @
eb7e8f16
...
@@ -168,21 +168,41 @@ class TaskCpdFragment : BaseFragment(), TaskView,
...
@@ -168,21 +168,41 @@ class TaskCpdFragment : BaseFragment(), TaskView,
}
}
// 珊瑚和CPD展示顺序
// 珊瑚和CPD展示顺序
if
(
CPD_ORDER
==
"CPD_SYD"
)
{
when
(
CPD_ORDER
)
{
if
(
cpdMax
>
0
)
{
"CPD_SYD"
->
{
when
{
cpdMax
>
0
->
{
// 拉取数组数据
// 拉取数组数据
// loadCPDDataList()
// loadCPDDataList()
// 循环拉取数据
// 循环拉取数据
loadCPDDataCycle
()
loadCPDDataCycle
()
}
}
}
else
if
(
CPD_ORDER
==
"CPD_SH"
)
{
shMax
>
0
->
{
if
(
shMax
>
0
)
{
loadShDataList
()
loadShDataList
()
}
}
}
else
{
else
->
{
notifyDataAndShowAd
()
}
}
}
"CPD_SH"
->
{
when
{
shMax
>
0
->
{
loadShDataList
()
}
cpdMax
>
0
->
{
loadCPDDataCycle
()
}
else
->
{
notifyDataAndShowAd
()
notifyDataAndShowAd
()
}
}
}
}
}
else
->
{
notifyDataAndShowAd
()
}
}
}
private
fun
loadShDataList
()
{
private
fun
loadShDataList
()
{
// 珊瑚CPD广告拉取
// 珊瑚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