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
9c361906
Commit
9c361906
authored
Jun 02, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加高额 提现gromore权重
parent
a1539bb7
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
50 additions
and
22 deletions
+50
-22
VideoAdingManager.java
.../java/com/mints/goodmoney/ad/video/VideoAdingManager.java
+7
-0
AppConfig.java
...p/src/main/java/com/mints/goodmoney/common/AppConfig.java
+5
-0
UserTaskMsgBean.java
...n/java/com/mints/goodmoney/mvp/model/UserTaskMsgBean.java
+5
-0
SplashGroMoreActivity.java
...m/mints/goodmoney/ui/activitys/SplashGroMoreActivity.java
+4
-2
MainFragment.kt
...main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
+8
-0
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+1
-0
ForegroundOrBackground.java
...ava/com/mints/goodmoney/utils/ForegroundOrBackground.java
+20
-20
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ad/video/VideoAdingManager.java
View file @
9c361906
...
@@ -272,6 +272,13 @@ public class VideoAdingManager {
...
@@ -272,6 +272,13 @@ public class VideoAdingManager {
LogUtil
.
d
(
TAG
,
"高额任务 -> 权重值:ksVideoWeight:"
+
AppConfig
.
ksHighVideoAdCount
);
LogUtil
.
d
(
TAG
,
"高额任务 -> 权重值:ksVideoWeight:"
+
AppConfig
.
ksHighVideoAdCount
);
}
}
// gromore
if
(
AppConfig
.
groHighVideoAdCount
>
0
)
{
weightList
.
add
(
new
WeightBean
(
AppConfig
.
groHighVideoAdCount
,
Constant
.
GROMORE_VEDIO_AD
));
weight
=
weight
+
AppConfig
.
groHighVideoAdCount
;
LogUtil
.
d
(
TAG
,
"高额任务 -> 权重值:groVideoWeight:"
+
AppConfig
.
groHighVideoAdCount
);
}
// 权重随机
// 权重随机
if
(
weightList
!=
null
&&
weightList
.
size
()
>
0
&&
weight
>
0
)
{
if
(
weightList
!=
null
&&
weightList
.
size
()
>
0
&&
weight
>
0
)
{
LogUtil
.
d
(
TAG
,
"高额任务 -> 1、权重总值:"
+
weight
);
LogUtil
.
d
(
TAG
,
"高额任务 -> 1、权重总值:"
+
weight
);
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/common/AppConfig.java
View file @
9c361906
...
@@ -124,6 +124,11 @@ public class AppConfig {
...
@@ -124,6 +124,11 @@ public class AppConfig {
*/
*/
public
static
int
ksHighVideoAdCount
=
0
;
public
static
int
ksHighVideoAdCount
=
0
;
/**
* 高额任务和超级翻倍 groVideo 剩余广告播放数
*/
public
static
int
groHighVideoAdCount
=
0
;
/**
/**
* 高额试玩任务标识
* 高额试玩任务标识
*/
*/
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/mvp/model/UserTaskMsgBean.java
View file @
9c361906
...
@@ -149,6 +149,7 @@ public class UserTaskMsgBean implements Serializable {
...
@@ -149,6 +149,7 @@ public class UserTaskMsgBean implements Serializable {
private
int
YLH
;
private
int
YLH
;
private
int
KS
;
private
int
KS
;
private
int
CSJ
;
private
int
CSJ
;
private
int
GROMORE
;
public
int
getYLH
()
{
public
int
getYLH
()
{
return
YLH
;
return
YLH
;
...
@@ -161,5 +162,9 @@ public class UserTaskMsgBean implements Serializable {
...
@@ -161,5 +162,9 @@ public class UserTaskMsgBean implements Serializable {
public
int
getCSJ
()
{
public
int
getCSJ
()
{
return
CSJ
;
return
CSJ
;
}
}
public
int
getGROMORE
()
{
return
GROMORE
;
}
}
}
}
}
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/SplashGroMoreActivity.java
View file @
9c361906
...
@@ -5,6 +5,7 @@ import android.util.Log;
...
@@ -5,6 +5,7 @@ import android.util.Log;
import
android.view.KeyEvent
;
import
android.view.KeyEvent
;
import
android.widget.FrameLayout
;
import
android.widget.FrameLayout
;
import
com.bytedance.msdk.adapter.gdt.GdtNetworkRequestInfo
;
import
com.bytedance.msdk.adapter.pangle.PangleNetworkRequestInfo
;
import
com.bytedance.msdk.adapter.pangle.PangleNetworkRequestInfo
;
import
com.bytedance.msdk.api.AdError
;
import
com.bytedance.msdk.api.AdError
;
import
com.bytedance.msdk.api.AdSlot
;
import
com.bytedance.msdk.api.AdSlot
;
...
@@ -21,6 +22,7 @@ import com.mints.goodmoney.manager.CsjGroMoreManager;
...
@@ -21,6 +22,7 @@ import com.mints.goodmoney.manager.CsjGroMoreManager;
import
com.mints.goodmoney.manager.TrackManager
;
import
com.mints.goodmoney.manager.TrackManager
;
import
com.mints.goodmoney.manager.TtCsjAdManager
;
import
com.mints.goodmoney.manager.TtCsjAdManager
;
import
com.mints.goodmoney.manager.UserManager
;
import
com.mints.goodmoney.manager.UserManager
;
import
com.mints.goodmoney.manager.YlhAdManager
;
import
com.mints.goodmoney.ui.activitys.base.BaseActivity
;
import
com.mints.goodmoney.ui.activitys.base.BaseActivity
;
import
com.mints.goodmoney.utils.LogUtil
;
import
com.mints.goodmoney.utils.LogUtil
;
import
com.mints.library.utils.CommonUtils
;
import
com.mints.library.utils.CommonUtils
;
...
@@ -93,9 +95,9 @@ public class SplashGroMoreActivity extends BaseActivity {
...
@@ -93,9 +95,9 @@ public class SplashGroMoreActivity extends BaseActivity {
//自定义兜底方案 选择使用
//自定义兜底方案 选择使用
TTNetworkRequestInfo
ttNetworkRequestInfo
;
TTNetworkRequestInfo
ttNetworkRequestInfo
;
//穿山甲兜底
//穿山甲兜底
ttNetworkRequestInfo
=
new
PangleNetworkRequestInfo
(
TtCsjAdManager
.
TT_AD_APPID
,
"887483103"
);
//
ttNetworkRequestInfo = new PangleNetworkRequestInfo(TtCsjAdManager.TT_AD_APPID, "887483103");
//gdt兜底
//gdt兜底
// ttNetworkRequestInfo = new GdtNetworkRequestInfo("1101152570", "8863364436303842593
");
ttNetworkRequestInfo
=
new
GdtNetworkRequestInfo
(
YlhAdManager
.
YLH_AD_APPID
,
"2001697222975737
"
);
//ks兜底
//ks兜底
// ttNetworkRequestInfo = new KsNetworkRequestInfo("90009", "4000000042");
// ttNetworkRequestInfo = new KsNetworkRequestInfo("90009", "4000000042");
//百度兜底
//百度兜底
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
View file @
9c361906
...
@@ -230,6 +230,14 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
...
@@ -230,6 +230,14 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
AppConfig
.
wzReadCoin
=
userMsgBean
!!
.
shareNews
.
readCoin
AppConfig
.
wzReadCoin
=
userMsgBean
!!
.
shareNews
.
readCoin
}
}
// 高额任务及超级翻倍次数
if
(
data
.
highRatePlan
!=
null
)
{
AppConfig
.
csjHighVideoAdCount
=
data
.
highRatePlan
.
csj
AppConfig
.
ylhHighVideoAdCount
=
data
.
highRatePlan
.
ylh
AppConfig
.
ksHighVideoAdCount
=
data
.
highRatePlan
.
ks
AppConfig
.
groHighVideoAdCount
=
data
.
highRatePlan
.
gromore
}
// 保存Ip,用于穿山甲回调校验
// 保存Ip,用于穿山甲回调校验
ps
.
put
(
Constant
.
CSJ_VEDIO_APPIP
,
data
.
ip
)
ps
.
put
(
Constant
.
CSJ_VEDIO_APPIP
,
data
.
ip
)
AppConfig
.
app_black_name
=
data
.
userRiskApps
.
userRiskAppName
AppConfig
.
app_black_name
=
data
.
userRiskApps
.
userRiskAppName
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
9c361906
...
@@ -337,6 +337,7 @@ class MyFragment : BaseFragment(),
...
@@ -337,6 +337,7 @@ class MyFragment : BaseFragment(),
AppConfig
.
csjHighVideoAdCount
=
data
.
highRatePlan
.
csj
AppConfig
.
csjHighVideoAdCount
=
data
.
highRatePlan
.
csj
AppConfig
.
ylhHighVideoAdCount
=
data
.
highRatePlan
.
ylh
AppConfig
.
ylhHighVideoAdCount
=
data
.
highRatePlan
.
ylh
AppConfig
.
ksHighVideoAdCount
=
data
.
highRatePlan
.
ks
AppConfig
.
ksHighVideoAdCount
=
data
.
highRatePlan
.
ks
AppConfig
.
groHighVideoAdCount
=
data
.
highRatePlan
.
gromore
}
}
if
(
data
.
shareNews
!=
null
)
{
if
(
data
.
shareNews
!=
null
)
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/utils/ForegroundOrBackground.java
View file @
9c361906
...
@@ -108,30 +108,30 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
...
@@ -108,30 +108,30 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
// 60秒后打开应用 显示开屏广告
// 60秒后打开应用 显示开屏广告
if
(
System
.
currentTimeMillis
()
-
leaveTime
>=
60000
)
{
if
(
System
.
currentTimeMillis
()
-
leaveTime
>=
60000
)
{
if
(
AppConfig
.
groMoreVideoAdCount
>
0
)
{
//
if (AppConfig.groMoreVideoAdCount > 0) {
if
(
groIntent
==
null
)
{
if
(
groIntent
==
null
)
{
groIntent
=
new
Intent
(
activity
,
SplashGroMoreActivity
.
class
);
groIntent
=
new
Intent
(
activity
,
SplashGroMoreActivity
.
class
);
}
}
activity
.
startActivity
(
groIntent
);
activity
.
startActivity
(
groIntent
);
}
else
{
//
} else {
if
(
isYlhSplash
)
{
//
if (isYlhSplash) {
isYlhSplash
=
false
;
//
isYlhSplash = false;
//
if
(
ylhIntent
==
null
)
{
//
if (ylhIntent == null) {
// 优量汇广告
//
// 优量汇广告
ylhIntent
=
new
Intent
(
activity
,
SplashADActivity
.
class
);
//
ylhIntent = new Intent(activity, SplashADActivity.class);
}
//
}
activity
.
startActivity
(
ylhIntent
);
//
activity.startActivity(ylhIntent);
}
else
{
//
} else {
isYlhSplash
=
true
;
//
isYlhSplash = true;
//
if
(
csjIntent
==
null
)
{
//
if (csjIntent == null) {
// 快手广告
//
// 快手广告
csjIntent
=
new
Intent
(
activity
,
SplashCsjADActivity
.
class
);
//
csjIntent = new Intent(activity, SplashCsjADActivity.class);
}
//
}
activity
.
startActivity
(
csjIntent
);
//
activity.startActivity(csjIntent);
}
//
}
}
//
}
}
}
}
}
count
++;
count
++;
...
...
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