Commit 9c361906 authored by mengcuiguang's avatar mengcuiguang

添加高额 提现gromore权重

parent a1539bb7
...@@ -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);
......
...@@ -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;
/** /**
* 高额试玩任务标识 * 高额试玩任务标识
*/ */
......
...@@ -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;
}
} }
} }
...@@ -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");
//百度兜底 //百度兜底
......
...@@ -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
......
...@@ -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) {
......
...@@ -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++;
......
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