Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_highgold
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
Commits
807572e6
Commit
807572e6
authored
Apr 23, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化广告
parent
8ad1a498
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
42 deletions
+46
-42
build.gradle
highgold/app/build.gradle
+2
-2
VedioAdingManager.java
...rc/main/java/com/mints/highgold/ad/VedioAdingManager.java
+1
-0
AwardActivity.java
...n/java/com/mints/highgold/ui/activitys/AwardActivity.java
+12
-11
MainFragment.java
...ain/java/com/mints/highgold/ui/fragment/MainFragment.java
+16
-15
VersusFragment.java
...n/java/com/mints/highgold/ui/fragment/VersusFragment.java
+15
-14
No files found.
highgold/app/build.gradle
View file @
807572e6
...
...
@@ -10,8 +10,8 @@ android {
applicationId
"com.mints.highgold"
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
3
versionName
"1.0.
2
"
versionCode
4
versionName
"1.0.
3
"
flavorDimensions
"default"
// dex突破65535的限制
...
...
highgold/app/src/main/java/com/mints/highgold/ad/VedioAdingManager.java
View file @
807572e6
...
...
@@ -6,6 +6,7 @@ import android.text.TextUtils;
import
com.mints.highgold.common.AppConfig
;
import
com.mints.highgold.common.Constant
;
import
com.mints.highgold.mvp.model.VedioAdingBean
;
import
com.mints.highgold.utils.ToastUtil
;
import
java.util.ArrayList
;
import
java.util.Calendar
;
...
...
highgold/app/src/main/java/com/mints/highgold/ui/activitys/AwardActivity.java
View file @
807572e6
...
...
@@ -305,11 +305,9 @@ public class AwardActivity extends BaseActivity implements AwardView {
TextUtils
.
equals
(
CARRIER_TYPE
,
Constant
.
CARRIER_REDENVELOPE
)
||
TextUtils
.
equals
(
CARRIER_TYPE
,
Constant
.
CARRIER_ONLINE_INCOME_DOUBLE
))
{
if
(
BuildConfig
.
DEBUG
)
{
if
(
csjFullAdCount
<=
0
&&
ylhAdCount
<=
0
&&
csjVedioAdCount
<=
0
)
{
showToast
(
"无视频可加载,请联系客服"
);
return
;
}
if
(
csjFullAdCount
<=
0
&&
ylhAdCount
<=
0
&&
csjVedioAdCount
<=
0
)
{
showToast
(
"今日视频已看完,请明天再来吧"
);
return
;
}
...
...
@@ -355,12 +353,15 @@ public class AwardActivity extends BaseActivity implements AwardView {
}
else
{
// loanYlhAd(CARRIER_TYPE);
if
(
BuildConfig
.
DEBUG
)
{
hideLoading
();
showToast
(
"无视频可加载,请联系客服"
);
}
else
{
loanYlhAd
(
CARRIER_TYPE
);
}
hideLoading
();
showToast
(
"今日视频已看完,请明天再来吧"
);
// if (BuildConfig.DEBUG) {
// hideLoading();
// showToast("无视频可加载,请联系客服");
// } else {
// loanYlhAd(CARRIER_TYPE);
// }
}
}
...
...
highgold/app/src/main/java/com/mints/highgold/ui/fragment/MainFragment.java
View file @
807572e6
...
...
@@ -2002,16 +2002,15 @@ public class MainFragment extends BaseFragment
* @param downloadCoin
*/
private
void
getRandomVedioAd
(
String
carrierType
,
int
coin
,
String
extraId
,
int
downloadCoin
)
{
if
(
BuildConfig
.
DEBUG
)
{
int
csjVedioAdCount
=
AppConfig
.
csjVedioAdCount
;
int
ylhAdCount
=
AppConfig
.
ylhAdCount
;
int
csjFullAdCount
=
AppConfig
.
csjFullAdCount
;
if
(
csjFullAdCount
<=
0
&&
ylhAdCount
<=
0
&&
csjVedioAdCount
<=
0
)
{
showToast
(
"无视频可加载,请联系客服"
);
return
;
}
int
csjVedioAdCount
=
AppConfig
.
csjVedioAdCount
;
int
ylhAdCount
=
AppConfig
.
ylhAdCount
;
int
csjFullAdCount
=
AppConfig
.
csjFullAdCount
;
if
(
csjFullAdCount
<=
0
&&
ylhAdCount
<=
0
&&
csjVedioAdCount
<=
0
)
{
showToast
(
"今日视频已看完,请明天再来吧"
);
return
;
}
showLoading
(
"加载中..."
);
CARRIER_TYPE
=
carrierType
;
...
...
@@ -2060,13 +2059,15 @@ public class MainFragment extends BaseFragment
}
else
if
(
ylhAdCount
>
0
)
{
loanYlhAd
(
carrierType
);
}
else
{
if
(
BuildConfig
.
DEBUG
)
{
hideLoading
();
showToast
(
"无视频可加载,请联系客服"
);
}
else
{
loanYlhAd
(
carrierType
);
}
hideLoading
();
showToast
(
"今日视频已看完,请明天再来吧"
);
// if (BuildConfig.DEBUG) {
// hideLoading();
// showToast("无视频可加载,请联系客服");
// } else {
// loanYlhAd(carrierType);
// }
}
}
...
...
highgold/app/src/main/java/com/mints/highgold/ui/fragment/VersusFragment.java
View file @
807572e6
...
...
@@ -2373,14 +2373,12 @@ public class VersusFragment extends BaseFragment
* @param downloadCoin
*/
private
void
getRandomVedioAd
(
String
carrierType
,
int
coin
,
String
extraId
,
int
downloadCoin
)
{
if
(
BuildConfig
.
DEBUG
)
{
int
csjVedioAdCount
=
AppConfig
.
csjVedioAdCount
;
int
ylhAdCount
=
AppConfig
.
ylhAdCount
;
int
csjFullAdCount
=
AppConfig
.
csjFullAdCount
;
if
(
csjFullAdCount
<=
0
&&
ylhAdCount
<=
0
&&
csjVedioAdCount
<=
0
)
{
showToast
(
"无视频可加载,请联系客服"
);
return
;
}
int
csjVedioAdCount
=
AppConfig
.
csjVedioAdCount
;
int
ylhAdCount
=
AppConfig
.
ylhAdCount
;
int
csjFullAdCount
=
AppConfig
.
csjFullAdCount
;
if
(
csjFullAdCount
<=
0
&&
ylhAdCount
<=
0
&&
csjVedioAdCount
<=
0
)
{
showToast
(
"今日视频已看完,请明天再来吧"
);
return
;
}
showLoading
(
"加载中..."
);
...
...
@@ -2427,12 +2425,15 @@ public class VersusFragment extends BaseFragment
loanYlhAd
(
carrierType
);
}
else
{
// loanYlhAd(carrierType);
if
(
BuildConfig
.
DEBUG
)
{
hideLoading
();
showToast
(
"无视频可加载,请联系客服"
);
}
else
{
loanYlhAd
(
carrierType
);
}
hideLoading
();
showToast
(
"今日视频已看完,请明天再来吧"
);
// if (BuildConfig.DEBUG) {
// hideLoading();
// showToast("无视频可加载,请联系客服");
// } else {
// loanYlhAd(carrierType);
// }
}
}
...
...
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