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
08ad975a
Commit
08ad975a
authored
Mar 04, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码合并
parent
c94121e5
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
46 deletions
+52
-46
VideoAdingManager.java
.../java/com/mints/goodmoney/ad/video/VideoAdingManager.java
+8
-11
MokuManager.kt
.../src/main/java/com/mints/goodmoney/manager/MokuManager.kt
+37
-31
TtCsjAdManager.java
...main/java/com/mints/goodmoney/manager/TtCsjAdManager.java
+2
-1
YlhAdManager.kt
...src/main/java/com/mints/goodmoney/manager/YlhAdManager.kt
+2
-1
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+1
-0
item_fragment_main_my_promotions.xml
.../src/main/res/layout/item_fragment_main_my_promotions.xml
+2
-2
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ad/video/VideoAdingManager.java
View file @
08ad975a
...
...
@@ -292,11 +292,6 @@ public class VideoAdingManager {
weight
=
weight
+
ksVideoWeight
;
LogUtil
.
d
(
TAG
,
"权重值:ksWeight:"
+
ksVideoWeight
);
}
if
(
AppConfig
.
rtaVideoAdCount
>
0
)
{
weightList
.
add
(
new
WeightBean
(
rtaVideoWeight
,
Constant
.
RTA_VEDIO_AD
));
weight
=
weight
+
rtaVideoWeight
;
LogUtil
.
d
(
TAG
,
"权重值:rtaWeight:"
+
rtaVideoWeight
);
}
if
(
AppConfig
.
shVideoAdCount
>
0
)
{
weightList
.
add
(
new
WeightBean
(
shVideoWeight
,
Constant
.
SH_VEDIO_AD
));
weight
=
weight
+
shVideoWeight
;
...
...
@@ -307,6 +302,11 @@ public class VideoAdingManager {
weight
=
weight
+
wnWeight
;
LogUtil
.
d
(
TAG
,
"权重值:sdhzWeight:"
+
wnWeight
);
}
if
(
AppConfig
.
rtaVideoAdCount
>
0
)
{
weightList
.
add
(
new
WeightBean
(
rtaVideoWeight
,
Constant
.
RTA_VEDIO_AD
));
weight
=
weight
+
rtaVideoWeight
;
LogUtil
.
d
(
TAG
,
"权重值:rtaWeight:"
+
rtaVideoWeight
);
}
if
(
AppConfig
.
flVideoAdCount
>
0
)
{
weightList
.
add
(
new
WeightBean
(
flVideoWeight
,
Constant
.
FL_VEDIO_AD
));
weight
=
weight
+
flVideoWeight
;
...
...
@@ -738,17 +738,14 @@ public class VideoAdingManager {
@Override
public
void
adDownload
()
{
isVideoAdDownload
=
true
;
// 注册下载任务监听
registerBroad
();
}
});
rtaVideoAdManager
.
loadAd
(
activity
,
bean
.
getCurCoin
(),
bean
.
getCarrierType
(),
bean
.
getExtraId
());
}
// ChannelRuleEnum channelRule = ChannelRuleEnum.match(videoAdType);
// BaseVideoAd rule = channelRule.channel;
// if (rule != null) {
// rule.loadAd(activity, bean.getCurCoin(), bean.getCarrierType(), bean.getExtraId());
// }
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
if
(
videoAdingListener
!=
null
)
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/MokuManager.kt
View file @
08ad975a
...
...
@@ -15,17 +15,25 @@ import com.mints.goodmoney.R
object
MokuManager
{
private
const
val
APP_ID
=
"Y0jqdW3W"
private
const
val
APP_
KEY
=
"421ec06a6f1dbd75010f6f9e4d821cfe03e3a7a3"
private
const
val
APP_
SECRET
=
"421ec06a6f1dbd75010f6f9e4d821cfe03e3a7a3"
fun
init
(
activity
:
Activity
)
{
try
{
//初始化sdk
MokuHelper
.
initSdk
(
activity
)
}
catch
(
e
:
MokuException
)
{
e
.
printStackTrace
()
}
}
fun
initOaid
(
oaid
:
String
)
{
try
{
//设置oaid
MokuHelper
.
initOaid
(
oaid
)
}
catch
(
e
:
MokuException
)
{
e
.
printStackTrace
()
}
}
fun
gotoMoku
(
context
:
Context
)
{
...
...
@@ -36,10 +44,8 @@ object MokuManager {
try
{
//启动sdk
MokuHelper
.
startSdk
(
context
,
userId
,
APP_ID
,
APP_KEY
)
}
catch
(
e
:
MokuException
)
{
e
.
printStackTrace
()
}
MokuHelper
.
startSdk
(
context
,
userId
,
APP_ID
,
APP_SECRET
)
val
styleConfig
=
StyleConfig
()
//设置页面标题文字
styleConfig
.
titleText
=
"蘑菇星球"
...
...
@@ -62,7 +68,7 @@ object MokuManager {
//设置主题样式
MokuHelper
.
initStyleConfig
(
styleConfig
)
try
{
//跳转到蘑菇星球页面
MokuHelper
.
startMokuMainActivity
(
context
)
}
catch
(
e
:
MokuException
)
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/TtCsjAdManager.java
View file @
08ad975a
...
...
@@ -37,7 +37,8 @@ public class TtCsjAdManager {
public
static
String
TT_AD_VEDIO_OFFINELINE
=
"945562040"
;
// 离线弹框
public
static
String
TT_AD_VEDIO_GAME
=
"945562067"
;
// 猎豹
public
static
String
TT_AD_VEDIO_JULEYUN
=
"945675529"
;
// 聚乐云
// public static String TT_AD_VEDIO_JULEYUN = "945675529";// 聚乐云
public
static
String
TT_AD_VEDIO_JULEYUN
=
"945562040"
;
// 聚乐云
public
static
String
TT_AD_VEDIO_BIANXIANMAO
=
"945743459"
;
// 变现猫
public
static
String
TT_AD_VEDIO_BLESSINGBAG
=
"945730117"
;
// 福袋
public
static
String
TT_AD_VEDIO_HOMEVEDIO
=
"945744137"
;
// 首页视频翻倍
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/YlhAdManager.kt
View file @
08ad975a
...
...
@@ -31,7 +31,8 @@ object YlhAdManager {
var
YLH_AD_VEDIO_OFFINELINE_POSTID
=
"9001346780383626"
//离线弹框
var
YLH_AD_VEDIO_GAME_POSTID
=
"9051646750686770"
//猎豹游戏
var
YLH_AD_VEDIO_JULEYUN_POSTID
=
"1011746770898338"
//聚乐云
// var YLH_AD_VEDIO_JULEYUN_POSTID = "1011746770898338" //聚乐云
var
YLH_AD_VEDIO_JULEYUN_POSTID
=
"9001346780383626"
//聚乐云
var
YLH_AD_VEDIO_BLESSINGBAG_POSTID
=
"1081758148138388"
//福袋
var
YLH_AD_VEDIO_HOMEVEDIO_POSTID
=
"4051451341464487"
// 首页视频翻倍
var
YLH_AD_VEDIO_SMALLHOMEVEDIO_POSTID
=
"9051152341362610"
// 短视频翻倍
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
08ad975a
...
...
@@ -259,6 +259,7 @@ class MyFragment : BaseFragment(),
mCurrentIndex
=
0
piv_grid
.
count
=
pageCount
vp_grid
.
adapter
=
ViewPagerAdapter
(
pagerList
)
vp_grid
.
addOnPageChangeListener
(
object
:
ViewPager
.
OnPageChangeListener
{
override
fun
onPageScrollStateChanged
(
state
:
Int
)
{
...
...
GoodMoney/app/src/main/res/layout/item_fragment_main_my_promotions.xml
View file @
08ad975a
...
...
@@ -13,9 +13,9 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"5dp"
android:layout_marginBottom=
"5dp"
android:visibility=
"gone"
android:layout_marginTop=
"8dp"
android:layout_marginBottom=
"8dp"
app:piv_count=
"2"
app:piv_selectedColor=
"@color/color_FF9837"
app:piv_unselectedColor=
"@color/color_20000000"
...
...
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