Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_aiyuebao
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_aiyuebao
Commits
9c45888f
Commit
9c45888f
authored
May 20, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
6ec7382b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
VideoAdingManager.java
.../java/com/wenshu/aiyuebao/ad/video/VideoAdingManager.java
+10
-10
No files found.
app/src/main/java/com/wenshu/aiyuebao/ad/video/VideoAdingManager.java
View file @
9c45888f
...
@@ -323,25 +323,25 @@ public class VideoAdingManager {
...
@@ -323,25 +323,25 @@ public class VideoAdingManager {
weightList
.
add
(
new
WeightBean
(
wnWeight
,
Constant
.
SDHZ_VEDIO_AD
));
weightList
.
add
(
new
WeightBean
(
wnWeight
,
Constant
.
SDHZ_VEDIO_AD
));
weight
=
weight
+
wnWeight
;
weight
=
weight
+
wnWeight
;
LogUtil
.
d
(
TAG
,
"权重值:sdhzWeight:"
+
wnWeight
);
LogUtil
.
d
(
TAG
,
"权重值:sdhzWeight:"
+
wnWeight
);
adList
.
add
(
"
e
"
);
adList
.
add
(
"
d
"
);
}
}
if
(
AppConfig
.
csjFullVedioAdCount
>
0
)
{
if
(
AppConfig
.
csjFullVedioAdCount
>
0
)
{
weightList
.
add
(
new
WeightBean
(
csjFullVideoWeight
,
Constant
.
CSJ_FULL_AD
));
weightList
.
add
(
new
WeightBean
(
csjFullVideoWeight
,
Constant
.
CSJ_FULL_AD
));
weight
=
weight
+
csjFullVideoWeight
;
weight
=
weight
+
csjFullVideoWeight
;
LogUtil
.
d
(
TAG
,
"权重值:csjFullVideoWeight:"
+
csjFullVideoWeight
);
LogUtil
.
d
(
TAG
,
"权重值:csjFullVideoWeight:"
+
csjFullVideoWeight
);
adList
.
add
(
"
f
"
);
adList
.
add
(
"
e
"
);
}
}
if
(
AppConfig
.
shVideoAdCount
>
0
)
{
if
(
AppConfig
.
shVideoAdCount
>
0
)
{
weightList
.
add
(
new
WeightBean
(
shVideoWeight
,
Constant
.
SH_VEDIO_AD
));
weightList
.
add
(
new
WeightBean
(
shVideoWeight
,
Constant
.
SH_VEDIO_AD
));
weight
=
weight
+
shVideoWeight
;
weight
=
weight
+
shVideoWeight
;
LogUtil
.
d
(
TAG
,
"权重值:shWeight:"
+
shVideoWeight
);
LogUtil
.
d
(
TAG
,
"权重值:shWeight:"
+
shVideoWeight
);
adList
.
add
(
"
g
"
);
adList
.
add
(
"
f
"
);
}
}
if
(
AppConfig
.
flVideoAdCount
>
0
)
{
if
(
AppConfig
.
flVideoAdCount
>
0
)
{
weightList
.
add
(
new
WeightBean
(
flVideoWeight
,
Constant
.
FL_VEDIO_AD
));
weightList
.
add
(
new
WeightBean
(
flVideoWeight
,
Constant
.
FL_VEDIO_AD
));
weight
=
weight
+
flVideoWeight
;
weight
=
weight
+
flVideoWeight
;
LogUtil
.
d
(
TAG
,
"权重值:flVideoWeight:"
+
flVideoWeight
);
LogUtil
.
d
(
TAG
,
"权重值:flVideoWeight:"
+
flVideoWeight
);
adList
.
add
(
"
h
"
);
adList
.
add
(
"
g
"
);
}
}
// 权重随机
// 权重随机
...
@@ -774,13 +774,13 @@ public class VideoAdingManager {
...
@@ -774,13 +774,13 @@ public class VideoAdingManager {
case
"c"
:
case
"c"
:
code
=
Constant
.
KS_VEDIO_AD
;
code
=
Constant
.
KS_VEDIO_AD
;
break
;
break
;
case
"
e
"
:
case
"
d
"
:
code
=
Constant
.
SDHZ_VEDIO_AD
;
code
=
Constant
.
SDHZ_VEDIO_AD
;
break
;
break
;
case
"
f
"
:
case
"
e
"
:
code
=
Constant
.
CSJ_FULL_AD
;
code
=
Constant
.
CSJ_FULL_AD
;
break
;
break
;
case
"
g
"
:
case
"
f
"
:
code
=
Constant
.
SH_VEDIO_AD
;
code
=
Constant
.
SH_VEDIO_AD
;
break
;
break
;
}
}
...
@@ -799,13 +799,13 @@ public class VideoAdingManager {
...
@@ -799,13 +799,13 @@ public class VideoAdingManager {
case
"c"
:
case
"c"
:
adtype
=
Constant
.
KS_VEDIO_AD
;
adtype
=
Constant
.
KS_VEDIO_AD
;
break
;
break
;
case
"
e
"
:
case
"
d
"
:
adtype
=
Constant
.
SDHZ_VEDIO_AD
;
adtype
=
Constant
.
SDHZ_VEDIO_AD
;
break
;
break
;
case
"
f
"
:
case
"
e
"
:
adtype
=
Constant
.
CSJ_FULL_AD
;
adtype
=
Constant
.
CSJ_FULL_AD
;
break
;
break
;
case
"
g
"
:
case
"
f
"
:
adtype
=
Constant
.
SH_VEDIO_AD
;
adtype
=
Constant
.
SH_VEDIO_AD
;
break
;
break
;
}
}
...
...
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