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
d592711a
Commit
d592711a
authored
Jan 06, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
5b380996
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
37 deletions
+15
-37
VedioAdingManager.java
.../java/com/mints/goodmoney/ad/vedio/VedioAdingManager.java
+11
-35
YlhVedioAdManager.java
.../java/com/mints/goodmoney/ad/vedio/YlhVedioAdManager.java
+1
-1
MyPresenter.kt
...in/java/com/mints/goodmoney/mvp/presenters/MyPresenter.kt
+3
-1
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ad/vedio/VedioAdingManager.java
View file @
d592711a
...
...
@@ -159,7 +159,7 @@ public class VedioAdingManager {
if
(
isHighWeight
)
{
setVedioAdingListener
(
null
);
adType
=
getHighWeight
();
}
else
{
}
else
{
adType
=
getRandomWeight
();
}
isHighWeight
=
false
;
...
...
@@ -178,42 +178,18 @@ public class VedioAdingManager {
* @return
*/
private
String
getHighWeight
()
{
int
weight
=
0
;
if
(
AppConfig
.
csjVedioAdCount
>
0
)
{
weight
=
weight
+
csjVedioWeight
;
LogUtil
.
d
(
TAG
,
"权重值:csjVedioWeight:"
+
csjVedioWeight
);
}
if
(
AppConfig
.
ylhAdCount
>
0
)
{
weight
=
weight
+
ylhWeight
;
LogUtil
.
d
(
TAG
,
"权重值:ylhWeight:"
+
ylhWeight
);
}
if
(
AppConfig
.
wnVedioAdCount
>
0
)
{
weight
=
weight
+
wnWeight
;
LogUtil
.
d
(
TAG
,
"权重值:wnWeight:"
+
wnWeight
);
}
// 权重随机
if
(
weight
>
0
)
{
isTTVideoAd
=
!
isTTVideoAd
;
if
(
isTTVideoAd
)
{
if
(
AppConfig
.
csjVedioAdCount
>
0
)
{
return
Constant
.
CSJ_VEDIO_AD
;
}
else
if
(
AppConfig
.
ylhAdCount
>
0
)
{
return
Constant
.
YLH_VEDIO_AD
;
}
else
{
return
Constant
.
SDHZ_VEDIO_AD
;
}
}
else
{
if
(
AppConfig
.
ylhAdCount
>
0
)
{
return
Constant
.
YLH_VEDIO_AD
;
}
else
if
(
AppConfig
.
csjVedioAdCount
>
0
)
{
return
Constant
.
CSJ_VEDIO_AD
;
}
else
{
return
Constant
.
SDHZ_VEDIO_AD
;
}
isTTVideoAd
=
!
isTTVideoAd
;
if
(
isTTVideoAd
)
{
if
(
AppConfig
.
csjVedioAdCount
<=
0
)
{
return
Constant
.
SDHZ_VEDIO_AD
;
}
return
Constant
.
CSJ_VEDIO_AD
;
}
else
{
if
(
AppConfig
.
ylhAdCount
<=
0
)
{
return
Constant
.
SDHZ_VEDIO_AD
;
}
return
Constant
.
YLH_VEDIO_AD
;
}
return
""
;
}
/**
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ad/vedio/YlhVedioAdManager.java
View file @
d592711a
...
...
@@ -125,7 +125,7 @@ public class YlhVedioAdManager extends BaseVedioAd implements VedioAdManagerView
ylhPostId
=
YlhAdManager
.
INSTANCE
.
getYLH_AD_VEDIO_MOREDIALOG_POSTID
();
break
;
}
ToastUtil
.
show
(
MintsApplication
.
getContext
(),
"ylh vedio:"
+
ylhPostId
);
//
ToastUtil.show(MintsApplication.getContext(), "ylh vedio:" + ylhPostId);
if
(
rewardVideoAD
!=
null
)
{
rewardVideoAD
=
null
;
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/mvp/presenters/MyPresenter.kt
View file @
d592711a
...
...
@@ -263,7 +263,9 @@ open class MyPresenter : BasePresenter<MyView>() {
override
fun
onNext
(
baseResponse
:
BaseResponse
<
Any
>)
{
if
(
isLinkView
)
return
when
(
baseResponse
.
status
)
{
}
when
(
baseResponse
.
status
)
{
200
->
getAutoUserHallBaseMsg
()
}
}
})
}
...
...
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