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
a1539bb7
Commit
a1539bb7
authored
Jun 02, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
fc4bd616
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
UserWeight.kt
...p/src/main/java/com/mints/goodmoney/manager/UserWeight.kt
+11
-4
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/UserWeight.kt
View file @
a1539bb7
...
...
@@ -18,7 +18,14 @@ object UserWeight {
private
val
videoAdingManager
by
lazy
{
VideoAdingManager
.
getInstance
(
ForegroundOrBackground
.
getApp_activity
())
}
fun
initAdWeight
(
data
:
UserTaskMsgBean
)
{
AppConfig
.
isVideoSleep
=
data
.
vedioRules
.
isVedioSleep
AppConfig
.
isVideoSleep
=
data
.
vedioRules
.
isVedioSleep
var
groMoreRate
=
0
var
groMoreCount
=
0
if
(
data
.
vedioRules
.
gromorE_VEDIO
!=
null
)
{
groMoreRate
=
data
.
vedioRules
.
gromorE_VEDIO
.
rate
groMoreCount
=
data
.
vedioRules
.
gromorE_VEDIO
.
surplus
}
videoAdingManager
.
initAdWeight
(
data
.
vedioRules
.
csJ_VEDIO
.
rate
,
data
.
vedioRules
.
ylH_VEDIO
.
rate
,
...
...
@@ -27,7 +34,7 @@ object UserWeight {
data
.
vedioRules
.
corAl_VIDEO
.
rate
,
data
.
vedioRules
.
csjfulL_VEDIO
.
rate
,
data
.
vedioRules
.
kS_VEDIO
.
rate
,
data
.
vedioRules
.
gromorE_VEDIO
.
r
ate
,
groMoreR
ate
,
data
.
vedioRules
.
oW_VEDIO
.
rate
)
LogUtil
.
d
(
TAG
,
"首页权重值:csjWeight:${data.vedioRules.csJ_VEDIO.rate} "
+
...
...
@@ -36,7 +43,7 @@ object UserWeight {
"csjFullWeight:${data.vedioRules.csjfulL_VEDIO.rate} "
+
"shWeight:${data.vedioRules.corAl_VIDEO.rate} "
+
"flWeight:${data.vedioRules.fL_VEDIO.rate} "
+
"groMoreWeight:${
data.vedioRules.gromorE_VEDIO.rate} "
+
"groMoreWeight:${
groMoreRate} "
+
"owWeight:${data.vedioRules.oW_VEDIO.rate} "
+
"ksWeight:${data.vedioRules.kS_VEDIO.rate}"
)
...
...
@@ -49,7 +56,7 @@ object UserWeight {
AppConfig
.
ksVideoAdCount
=
data
.
vedioRules
.
kS_VEDIO
.
surplus
AppConfig
.
owVideoAdCount
=
data
.
vedioRules
.
oW_VEDIO
.
surplus
AppConfig
.
csjFullVideoAdCount
=
data
.
vedioRules
.
csjfulL_VEDIO
.
surplus
AppConfig
.
groMoreVideoAdCount
=
data
.
vedioRules
.
gromorE_VEDIO
.
surplus
AppConfig
.
groMoreVideoAdCount
=
groMoreCount
LogUtil
.
d
(
TAG
,
"首页视频数:csjCount:${AppConfig.csjVideoAdCount} "
+
"ylhCount:${AppConfig.ylhAdCount} "
+
"sdhzCount:${AppConfig.wnVideoAdCount} "
+
...
...
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