Commit 08ad975a authored by mengcuiguang's avatar mengcuiguang

代码合并

parent c94121e5
......@@ -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) {
......
......@@ -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) {
......
......@@ -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";// 首页视频翻倍
......
......@@ -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" // 短视频翻倍
......
......@@ -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) {
......
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment