Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_highgold_pro
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_highgold_pro
Commits
264ad37d
Commit
264ad37d
authored
Apr 22, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
0b2b2462
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
23 deletions
+5
-23
build.gradle
app/build.gradle
+2
-2
VideoAdingManager.java
.../java/com/mints/goldspace/ad/video/VideoAdingManager.java
+3
-21
No files found.
app/build.gradle
View file @
264ad37d
...
...
@@ -9,8 +9,8 @@ android {
applicationId
"com.mints.goldspace"
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
3
6
versionName
"1.3.
6
"
versionCode
3
7
versionName
"1.3.
7
"
flavorDimensions
"default"
// dex突破65535的限制
...
...
app/src/main/java/com/mints/goldspace/ad/video/VideoAdingManager.java
View file @
264ad37d
...
...
@@ -215,26 +215,6 @@ public class VideoAdingManager {
* <p>
* 穿山甲>优量汇>穿山甲全屏>快手>珊瑚>闪电盒子>枫岚(兜底)
*/
private
String
getNextAdType
()
{
String
nextAdType
;
if
(
AppConfig
.
csjVideoAdCount
>
0
)
{
nextAdType
=
Constant
.
CSJ_VEDIO_AD
;
}
else
if
(
AppConfig
.
ylhAdCount
>
0
)
{
nextAdType
=
Constant
.
YLH_VEDIO_AD
;
}
else
if
(
AppConfig
.
csjFullVedioAdCount
>
0
)
{
nextAdType
=
Constant
.
CSJ_FULL_AD
;
}
else
if
(
AppConfig
.
wnVideoAdCount
>
0
)
{
nextAdType
=
Constant
.
SDHZ_VEDIO_AD
;
}
else
if
(
AppConfig
.
shVideoAdCount
>
0
)
{
nextAdType
=
Constant
.
SH_VEDIO_AD
;
}
else
if
(
AppConfig
.
ksVideoAdCount
>
0
)
{
nextAdType
=
Constant
.
KS_VEDIO_AD
;
}
else
{
nextAdType
=
Constant
.
FL_VEDIO_AD
;
}
return
nextAdType
;
}
private
String
getNextFailAdType
()
{
String
nextAdType
=
Constant
.
FL_VEDIO_AD
;
try
{
...
...
@@ -265,7 +245,9 @@ public class VideoAdingManager {
}
isHighWeight
=
false
;
currentRandomAdList
.
add
(
getCode
(
adType
));
if
(
currentRandomAdList
!=
null
)
{
currentRandomAdList
.
add
(
getCode
(
adType
));
}
LogUtil
.
d
(
TAG
,
"权重结果返回的广告类型:"
+
adType
);
return
adType
;
...
...
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