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
6132bb45
Commit
6132bb45
authored
Apr 22, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化高额任务
parent
264ad37d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
32 deletions
+7
-32
VideoAdingManager.java
.../java/com/mints/goldspace/ad/video/VideoAdingManager.java
+7
-32
No files found.
app/src/main/java/com/mints/goldspace/ad/video/VideoAdingManager.java
View file @
6132bb45
...
...
@@ -163,38 +163,8 @@ public class VideoAdingManager {
this
.
activity
=
activityWeakReference
.
get
();
isVideoAdDownload
=
false
;
if
(
AppConfig
.
flVideoFlag
)
{
// 先展示枫岚视频
firstLoadFlVideo
(
bean
);
}
else
{
// 权重自有逻辑
loadAdVideo
(
getVideoAdType
(),
bean
);
}
}
/**
* 根据载体优先加载枫岚
*
* @param bean
*/
private
void
firstLoadFlVideo
(
VideoAdingBean
bean
)
{
String
adType
;
switch
(
bean
.
getCarrierType
())
{
case
Constant
.
CARRIER_VERSUS_VIDEO
:
case
Constant
.
CARRIER_HOMEWATER
:
case
Constant
.
CARRIER_WALK
:
case
Constant
.
CARRIER_WALK_BUBBLE
:
case
Constant
.
CARRIER_SIGNIN_HOMEPAGE_CARD
:
case
Constant
.
CARRIER_OFFLINE_DOUBLE
:
case
Constant
.
CARRIER_EATMEAL_SUBSIDY
:
adType
=
Constant
.
FL_VEDIO_AD
;
// ToastUtil.showLong(activity, "载体优先类型:" + Constant.FL_VEDIO_AD);
break
;
default
:
adType
=
getVideoAdType
();
break
;
}
loadAdVideo
(
adType
,
bean
);
// 权重自有逻辑
loadAdVideo
(
getVideoAdType
(),
bean
);
}
/**
...
...
@@ -216,6 +186,11 @@ public class VideoAdingManager {
* 穿山甲>优量汇>穿山甲全屏>快手>珊瑚>闪电盒子>枫岚(兜底)
*/
private
String
getNextFailAdType
()
{
// 高额任务时 会为空
if
(
adList
==
null
||
currentRandomAdList
==
null
)
{
return
getHighWeight
();
}
String
nextAdType
=
Constant
.
FL_VEDIO_AD
;
try
{
List
<
String
>
tempList
=
listrem
(
adList
,
currentRandomAdList
);
...
...
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