Commit f2fcf593 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 1e4c5250
This diff is collapsed.
......@@ -81,7 +81,6 @@ public class MintsApplication extends MultiDexApplication {
private MiitHelper.AppIdsUpdater appIdsUpdater = new MiitHelper.AppIdsUpdater() {
@Override
public void OnIdsAvalid(@NonNull String ids) {
// System.out.println("mcg __ ++++++ids: " + ids);
oaid = ids;
}
};
......@@ -225,8 +224,6 @@ public class MintsApplication extends MultiDexApplication {
*/
public void initUm(Context context) {
// System.out.println("mcg __ init um");
/**
* 参数4:设备类型,必须参数,传参数为UMConfigure.DEVICE_TYPE_PHONE则表示手机;传参数为UMConfigure.DEVICE_TYPE_BOX则表示盒子;默认为手机。
* 参数5:Push推送业务的secret,需要集成Push功能时必须传入Push的secret,否则传空。
......
......@@ -68,6 +68,10 @@ public class CsjFullVedioAdManager implements LyVedioAdManagerView {
}
public void destory() {
if (mttFullVideoAd != null) {
mttFullVideoAd.setFullScreenVideoAdInteractionListener(null);
}
if (csjFullVedioAdPresenter != null) {
csjFullVedioAdPresenter.dispose();
csjFullVedioAdPresenter.detachView();
......@@ -114,6 +118,10 @@ public class CsjFullVedioAdManager implements LyVedioAdManagerView {
break;
}
if (mttFullVideoAd != null) {
mttFullVideoAd.setFullScreenVideoAdInteractionListener(null);
}
AdSlot adSlot = new AdSlot.Builder()
.setCodeId(codeId)
.setSupportDeepLink(true)
......@@ -145,7 +153,6 @@ public class CsjFullVedioAdManager implements LyVedioAdManagerView {
@Override
public void onAdVideoBarClick() {
// System.out.println("mcg __ csjfull onAdVideoBarClick");
if (isClickScreen) {
// 防止重复
TrackManager.getInstance().addCallImp(Constant.AD_SOURCE_CSJFULL, Constant.EVENT_TYPE_FOUR, "", "");
......
......@@ -76,6 +76,10 @@ public class CsjVedioAdManager implements LyVedioAdManagerView {
}
public void destory() {
if (mttRewardVideoAd != null) {
mttRewardVideoAd.setRewardAdInteractionListener(null);
}
if (csjVedioAdPresenter != null) {
csjVedioAdPresenter.dispose();
csjVedioAdPresenter.detachView();
......@@ -151,6 +155,10 @@ public class CsjVedioAdManager implements LyVedioAdManagerView {
String userID = userManager.getUserID();
String tid = MD5.GetMD5Code(String.valueOf(System.currentTimeMillis()) + userID);
if (mttRewardVideoAd != null) {
mttRewardVideoAd.setRewardAdInteractionListener(null);
}
//step4:创建广告请求参数AdSlot,具体参数含义参考文档
AdSlot adSlot = new AdSlot.Builder()
.setCodeId(codeId)
......@@ -226,7 +234,7 @@ public class CsjVedioAdManager implements LyVedioAdManagerView {
csjVedioAdListener.csjVedioDownload();
}
}
}catch (Exception e){
} catch (Exception e) {
e.printStackTrace();
if (csjVedioAdListener != null) {
......
......@@ -36,8 +36,8 @@ public class VedioAdingManager {
private int mintegralWeight;
private ArrayList<Integer> weightList;
private boolean isVedioAdDownload = false;// 是否点击广告下载 true-点击
private Activity activity;
private boolean isVedioAdDownload = false;// 是否点击广告下载 true-点击
public static VedioAdingManager getInstance(Activity activity) {
if (_inst != null) {
......@@ -47,7 +47,6 @@ public class VedioAdingManager {
return _inst;
}
}
private VedioAdingManager(Activity activity) {
init(activity);
return;
......@@ -133,7 +132,6 @@ public class VedioAdingManager {
*/
private String getRandomWeightAdtype() {
String adType = "";
// int randomWeight = getRandomWeight(weightList);
int randomWeight = getRandomWeight();
if (randomWeight == ylhWeight) {
adType = Constant.YLH_VEDIO_AD;
......@@ -308,6 +306,9 @@ public class VedioAdingManager {
ylhVedioAdManager = YlhVedioAdManager.getInstance(activity);
}
// 重置监听
ylhVedioAdManager.setYlhVedioAdListener(null);
ylhVedioAdManager.loanYlhAd(bean.getCurCoin(), bean.getCarrierType(), bean.getExtraId());
ylhVedioAdManager.setYlhVedioAdListener(new YlhVedioAdManager.YlhVedioAdListener() {
@Override
......@@ -344,6 +345,9 @@ public class VedioAdingManager {
csjFullVedioAdManager = CsjFullVedioAdManager.getInstance(activity);
}
// 重置监听
csjFullVedioAdManager.setCsjFullVedioAdListener(null);
csjFullVedioAdManager.loadCsjFullAd(bean.getCurCoin(), bean.getCarrierType(), bean.getExtraId());
csjFullVedioAdManager.setCsjFullVedioAdListener(new CsjFullVedioAdManager.CsjFullVedioAdListener() {
@Override
......@@ -380,6 +384,9 @@ public class VedioAdingManager {
csjVedioAdManager = CsjVedioAdManager.getInstance(activity);
}
// 重置监听
csjVedioAdManager.setCsjVedioAdListener(null);
csjVedioAdManager.loadCsjAd(bean.getCurCoin(), bean.getCarrierType(), bean.getExtraId());
csjVedioAdManager.setCsjVedioAdListener(new CsjVedioAdManager.CsjVedioAdListener() {
@Override
......@@ -416,6 +423,8 @@ public class VedioAdingManager {
hytechVedioAdManager = HytechVedioAdManager.getInstance(activity);
}
// 重置监听
hytechVedioAdManager.setHytechVedioAdListener(null);
hytechVedioAdManager.loanHytechAd(bean.getDownloadCoin(), bean.getCurCoin(), bean.getCarrierType(), bean.getExtraId());
hytechVedioAdManager.setHytechVedioAdListener(new HytechVedioAdManager.HytechVedioAdListener() {
......@@ -448,6 +457,9 @@ public class VedioAdingManager {
mintegralVedioAdManager = MintegralVedioAdManager.getInstance(activity);
}
// 重置监听
mintegralVedioAdManager.setMintegralVedioAdListener(null);
mintegralVedioAdManager.loadMintegralAd(bean.getDownloadCoin(), bean.getCurCoin(), bean.getCarrierType(), bean.getExtraId());
mintegralVedioAdManager.setMintegralVedioAdListener(new MintegralVedioAdManager.MintegralVedioAdListener() {
@Override
......
......@@ -104,6 +104,10 @@ public class YlhVedioAdManager implements LyVedioAdManagerView {
break;
}
if (rewardVideoAD != null) {
rewardVideoAD = null;
}
rewardVideoAD = new RewardVideoAD(activity, YlhAdManager.YLH_AD_VEDIO_APPID, ylhPostId, new RewardVideoADListener() {
@Override
public void onADLoad() {//广告加载成功,可在此回调后进行广告展示,此时广告过期时间确定,可通过RewardVideoAD.getExpireTimestamp()获取
......@@ -169,7 +173,6 @@ public class YlhVedioAdManager implements LyVedioAdManagerView {
TrackManager.getInstance().addCallImp(Constant.AD_SOURCE_YLH, Constant.EVENT_TYPE_FOUR, "", "");
isClickScreen = false;
}
System.out.println("mcg ylh 点击");
if (ylhVedioAdListener != null) {
ylhVedioAdListener.ylhVedioAdDownload();
}
......
......@@ -288,19 +288,16 @@ public class InsertScreenAdManager {
mTMItAd.setAdListener(new FoxListener() {
@Override
public void onReceiveAd() {
System.out.println("mcg __ onReceiveAd");
AppConfig.interactionAdType = 0;
}
@Override
public void onFailedToReceiveAd() {
System.out.println("mcg __ onFailedToReceiveAd");
AppConfig.interactionAdType = 0;
}
@Override
public void onLoadFailed() {
System.out.println("mcg __ onLoadFailed");
AppConfig.interactionAdType = 0;
}
......
......@@ -135,9 +135,6 @@ public class AlipayManager {
msg.obj = result;
if (mHandler != null) {
mHandler.sendMessage(msg);
System.out.println("mcg alipay send");
} else {
System.out.println("mcg alipay fail");
}
}
};
......
......@@ -6,10 +6,15 @@ package com.mints.highgold.manager;
public class MintegralManager {
/*激励视频*/
public static final String MINTEGRAL_AD_VEDIO_MOREDIALOG = "194665";// 高额版_Android_喝水_0422 签到、气泡、离线弹框
public static final String MINTEGRAL_AD_VEDIO_POP = "194665";// 高额版_Android_首页气泡_0512
public static final String MINTEGRAL_AD_VEDIO_CHANGE = "199876";// 高额版_Android_任务赚视频_0512
public static final String MINTEGRAL_AD_VEDIO_REDBOX = "199874";// 高额版_Android_抢红包_0512
public static final String MINTEGRAL_AD_VEDIO_MAIN = "199872";// 高额版_Android_首页试玩_0512
/*激励视频 UNITID*/
public static final String MINTEGRAL_AD_VEDIO_MOREDIALOG_UNITID = "249880";// 高额版_Android_喝水_0422 签到、气泡、离线弹框
public static final String MINTEGRAL_AD_VEDIO_POP_UNITID = "249880";// 高额版_Android_首页气泡_0512
public static final String MINTEGRAL_AD_VEDIO_CHANGE_UNITID = "253901";// 高额版_Android_任务赚视频_0512
public static final String MINTEGRAL_AD_VEDIO_REDBOX_UNITID = "253899";// 高额版_Android_抢红包_0512
public static final String MINTEGRAL_AD_VEDIO_MAIN_UNITID = "253897";// 高额版_Android_首页试玩_0512
}
......@@ -70,11 +70,13 @@ public class UserTaskMsgBean implements Serializable {
private int vedioplan_lyh_vedio_rate;
private int vedioplan_liyan_vedio_rate;
private int vedioplan_hytech_vedio_rate;
private int vedioplan_mintegral_vedio_rate;
private int vedioplan_csj_vedio_surplus;
private int vedioplan_liyan_vedio_surplus;
private int vedioplan_lyh_vedio_surplus;
private int vedioplan_csj_full_screen_video_surplus;
private int vedioplan_hytech_vedio_surplus;
private int vedioplan_mintegral_vedio_surplus;
public int getVedioplan_hytech_vedio_rate() {
return vedioplan_hytech_vedio_rate;
......@@ -328,4 +330,60 @@ public class UserTaskMsgBean implements Serializable {
public String getAppIp() {
return appIp;
}
public void setVedioplan_csj_vedio_rate(int vedioplan_csj_vedio_rate) {
this.vedioplan_csj_vedio_rate = vedioplan_csj_vedio_rate;
}
public void setVedioplan_csj_full_screen_video_rate(int vedioplan_csj_full_screen_video_rate) {
this.vedioplan_csj_full_screen_video_rate = vedioplan_csj_full_screen_video_rate;
}
public void setVedioplan_lyh_vedio_rate(int vedioplan_lyh_vedio_rate) {
this.vedioplan_lyh_vedio_rate = vedioplan_lyh_vedio_rate;
}
public void setVedioplan_liyan_vedio_rate(int vedioplan_liyan_vedio_rate) {
this.vedioplan_liyan_vedio_rate = vedioplan_liyan_vedio_rate;
}
public void setVedioplan_hytech_vedio_rate(int vedioplan_hytech_vedio_rate) {
this.vedioplan_hytech_vedio_rate = vedioplan_hytech_vedio_rate;
}
public void setVedioplan_csj_vedio_surplus(int vedioplan_csj_vedio_surplus) {
this.vedioplan_csj_vedio_surplus = vedioplan_csj_vedio_surplus;
}
public void setVedioplan_liyan_vedio_surplus(int vedioplan_liyan_vedio_surplus) {
this.vedioplan_liyan_vedio_surplus = vedioplan_liyan_vedio_surplus;
}
public void setVedioplan_lyh_vedio_surplus(int vedioplan_lyh_vedio_surplus) {
this.vedioplan_lyh_vedio_surplus = vedioplan_lyh_vedio_surplus;
}
public void setVedioplan_csj_full_screen_video_surplus(int vedioplan_csj_full_screen_video_surplus) {
this.vedioplan_csj_full_screen_video_surplus = vedioplan_csj_full_screen_video_surplus;
}
public void setVedioplan_hytech_vedio_surplus(int vedioplan_hytech_vedio_surplus) {
this.vedioplan_hytech_vedio_surplus = vedioplan_hytech_vedio_surplus;
}
public int getVedioplan_mintegral_vedio_rate() {
return vedioplan_mintegral_vedio_rate;
}
public void setVedioplan_mintegral_vedio_rate(int vedioplan_mintegral_vedio_rate) {
this.vedioplan_mintegral_vedio_rate = vedioplan_mintegral_vedio_rate;
}
public int getVedioplan_mintegral_vedio_surplus() {
return vedioplan_mintegral_vedio_surplus;
}
public void setVedioplan_mintegral_vedio_surplus(int vedioplan_mintegral_vedio_surplus) {
this.vedioplan_mintegral_vedio_surplus = vedioplan_mintegral_vedio_surplus;
}
}
package com.mints.highgold.ui.activitys
import android.os.Bundle
import com.mints.highgold.BuildConfig
import com.mints.highgold.R
import com.mints.highgold.ui.activitys.base.BaseActivity
import com.mints.library.base.BaseWebActivity
import com.mints.library.utils.nodoubleclick.AntiShake
import kotlinx.android.synthetic.main.activity_aboutas.*
import kotlinx.android.synthetic.main.header_activity.*
/**
* 描述:关于我们
* 作者:孟崔广
* 时间:2020/5/12 15:53
* 邮箱:mengcga@163.com
*/
class Aboutas2Activity : BaseActivity() {
override fun getContentViewLayoutID(): Int {
return R.layout.activity_aboutas
}
override fun initViewsAndEvents() {
tv_activity_title?.setText("关于我们")
initListener()
}
override fun isApplyKitKatTranslucency(): Boolean {
return false
}
private fun initListener() {
iv_aboutas_icon?.setOnLongClickListener {
if (BuildConfig.DEBUG) readyGo(ExchangeActivity::class.java)
true
}
tv_activity_back.setOnClickListener {
finish()
}
tv_aboutas_service.setOnClickListener {
val bundle = Bundle()
bundle.putString(BaseWebActivity.BUNDLE_KEY_TITLE, "服务协议")
bundle.putString(BaseWebActivity.BUNDLE_KEY_URL, BuildConfig.MainIp + "high/register.html")
readyGo(BaseWebActivity::class.java, bundle)
}
tv_aboutas_policy.setOnClickListener {
val bundle = Bundle()
bundle.putString(BaseWebActivity.BUNDLE_KEY_TITLE, "隐私政策")
bundle.putString(BaseWebActivity.BUNDLE_KEY_URL, BuildConfig.MainIp + "personal.html")
readyGo(BaseWebActivity::class.java, bundle)
}
}
}
......@@ -325,8 +325,6 @@ public class AwardActivity extends BaseActivity implements AwardView {
@Override
public void vedioAdingListenerError(String adType) {
hideLoading();
System.out.println("mcg __ VedioAdingManager: vedioAdingListenerError--adType:" + adType);
// showToast("视频异常,请重试");
}
......@@ -334,7 +332,6 @@ public class AwardActivity extends BaseActivity implements AwardView {
public void vedioAdingListenerFail(String adType) {
// showToast("人工添加,第一次加载失败");
System.out.println("mcg __ VedioAdingManager: vedioAdingListenerFail");
// hideLoading();
vedioAdingManager.loadFailAding(bean);
......@@ -344,7 +341,6 @@ public class AwardActivity extends BaseActivity implements AwardView {
showToast("加载超时,请休息一下");
hideLoading();
System.out.println("mcg __ 内部 vedioAdingListenerError adType:" + adType);
}
@Override
......@@ -352,12 +348,10 @@ public class AwardActivity extends BaseActivity implements AwardView {
hideLoading();
showToast("视频加载异常,请重试!");
System.out.println("mcg __ 内部 vedioAdingListenerFail adType:" + adType);
}
@Override
public void vedioAdingListenerSuccess(String adType) {
System.out.println("mcg __ 内部 vedioAdingListenerSuccess adType:" + adType);
hideLoading();
vedioAdingSuccess(adType);
......@@ -403,7 +397,6 @@ public class AwardActivity extends BaseActivity implements AwardView {
public void vedioAdingListenerSuccess(String adType) {
hideLoading();
// showToast("成功了");
System.out.println("mcg __ VedioAdingManager: vedioAdingListenerSuccess --- 是否点击下载isVedioAdDownload=" + vedioAdingManager.isVedioAdDownload());
vedioAdingSuccess(adType);
}
});
......
......@@ -163,8 +163,6 @@ public class RedboxActivity extends BaseActivity implements RedboxView {
if (tvRedboxOne != null) {
if (AntiShake.check(tvRedboxOne.getId())) return;
}
System.out.println("mcg __ redbox onresume");
insertScreenAd.showInsertScreenAd(Constant.CARRIER_REDENVELOPE);
redboxPresenter.getAllRedEnvelopeMsg();
}
......
......@@ -121,7 +121,7 @@ public class WebActivity extends BaseActivity {
mBrowserLayout.getWebView().setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
System.out.println("mcg __ url:"+url);
// System.out.println("mcg __ url:"+url);
if (url.contains(".apk") || url.contains("pgyer")) {
Uri uri = Uri.parse(url);
......
package com.mints.highgold.ui.activitys;
import android.support.v4.app.FragmentTransaction;
import android.view.View;
import com.mints.highgold.R;
import com.mints.highgold.mvp.presenters.YilanVedioPresenter;
import com.mints.highgold.ui.activitys.base.BaseActivity;
import com.mints.highgold.ui.widgets.CountDownVedioView;
import com.mints.library.utils.nodoubleclick.AntiShake;
import com.yilan.sdk.player.UserCallback;
import com.yilan.sdk.player.entity.PlayData;
import com.yilan.sdk.player.utils.Constant;
import com.yilan.sdk.ui.ad.entity.AdEntity;
import com.yilan.sdk.ui.configs.AdVideoCallback;
import com.yilan.sdk.ui.configs.LittleVideoConfig;
import com.yilan.sdk.ui.littlevideo.LittleVideoFragment;
import butterknife.Bind;
import butterknife.OnClick;
public class YilanVedioActivity extends BaseActivity {
@Bind(R.id.cdvv_yilan_time)
CountDownVedioView cdvvYilanTime;
private LittleVideoFragment littleVideoFragment;
private YilanVedioPresenter yilanVedioPresenter;
@Override
protected int getContentViewLayoutID() {
return R.layout.activity_yilan_vedio;
}
@Override
protected void initViewsAndEvents() {
// yilanVedioPresenter = new YilanVedioPresenter();
// yilanVedioPresenter.attachView(this);
cdvvYilanTime.start();
showLittle();
}
@Override
protected boolean isApplyKitKatTranslucency() {
return false;
}
@Override
public void onDestroy() {
super.onDestroy();
// yilanVedioPresenter.detachView();
}
@OnClick({R.id.iv_activity_back})
public void onClick(View view) {
if (AntiShake.check(view.getId())) return;
switch (view.getId()) {
case R.id.iv_activity_back:
finish();
break;
}
}
private void showLittle() {
FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
if (littleVideoFragment == null) {
littleVideoFragment = LittleVideoFragment.newInstance();
transaction.add(R.id.yilan_frame_container, littleVideoFragment, LittleVideoFragment.class.getSimpleName());
littleVideoFragment.setUserCallBack(new UserCallback() {
@Override
public boolean event(int type, PlayData data, int playerHash) {
switch (type) {
case Constant.STATE_PREPARED:
break;
case Constant.STATE_ERROR:
break;
case Constant.STATE_PLAYING:
break;
case Constant.STATE_COMPLETE:
break;
case Constant.STATE_PAUSED:
break;
}
return false;
}
});
LittleVideoConfig.getInstance()
.setAdVideoCallback(new AdVideoCallback() {
@Override
public void onVideoLoad(AdEntity adEntity) {
}
@Override
public void onVideoError(int i, AdEntity adEntity) {
}
@Override
public void onVideoAdStartPlay(AdEntity adEntity) {
}
@Override
public void onVideoAdPaused(AdEntity adEntity) {
}
@Override
public void onVideoAdContinuePlay(AdEntity adEntity) {
}
@Override
public void onVideoAdComplete(AdEntity adEntity) {
}
});//设置视频广告回调
} else {
transaction.show(littleVideoFragment);
}
transaction.commitAllowingStateLoss();
}
}
......@@ -349,7 +349,6 @@ public class MainFragment extends BaseFragment
switch (view.getId()) {
case R.id.tv_fragment_main_whatgold:// 如何赚金币
readyGo(WhatGoldActivity.class);
// MintegralVedioAdManager.getInstance(getActivity()).loadMintegralAd(0,0,"","");
break;
case R.id.rl_fragment_main_redbox:// 红包
readyGo(RedboxActivity.class);
......@@ -432,7 +431,6 @@ public class MainFragment extends BaseFragment
return;
}
if (userConfig != null) {
dialogDrink(userConfig.getCoin(), waterBean.getCoin());
}
......@@ -465,31 +463,35 @@ public class MainFragment extends BaseFragment
// 保存穿山甲激励视频ip
spUtil.putString(Constant.CSJ_VEDIO_APPIP, data.getAppIp());
//测试数据
// data.setVedioplan_csj_vedio_rate(0);
// data.setVedioplan_lyh_vedio_rate(0);
// data.setVedioplan_csj_full_screen_video_rate(0);
// data.setVedioplan_hytech_vedio_rate(0);
// data.setVedioplan_mintegral_vedio_rate(0);
//
// data.setVedioplan_csj_vedio_surplus(0);
// data.setVedioplan_lyh_vedio_surplus(0);
// data.setVedioplan_csj_full_screen_video_surplus(0);
// data.setVedioplan_hytech_vedio_surplus(0);
// data.setVedioplan_mintegral_vedio_surplus(0);
// 设置随机广告权重
if (vedioAdingManager != null) {
vedioAdingManager.initAdWeight(data.getVedioplan_csj_vedio_rate(), data.getVedioplan_lyh_vedio_rate(), data.getVedioplan_csj_full_screen_video_rate(), data.getVedioplan_hytech_vedio_rate(),0);
// vedioAdingManager.initAdWeight(0, 0, 0,0, 1);
vedioAdingManager.initAdWeight(data.getVedioplan_csj_vedio_rate(), data.getVedioplan_lyh_vedio_rate(), data.getVedioplan_csj_full_screen_video_rate(), data.getVedioplan_hytech_vedio_rate(), data.getVedioplan_mintegral_vedio_rate());
}
System.out.println("mcg __ 首页权重值:csjVedioWeight:" + data.getVedioplan_csj_vedio_rate() + " ylhWeight:" + data.getVedioplan_lyh_vedio_rate() + " csjFullWeight:" + data.getVedioplan_csj_full_screen_video_rate() + " hytechVedioAdWeight:" + data.getVedioplan_hytech_vedio_rate());
System.out.println("mcg __ 首页权重值:csjVedioWeight:" + data.getVedioplan_csj_vedio_rate() + " ylhWeight:" + data.getVedioplan_lyh_vedio_rate() + " csjFullWeight:" + data.getVedioplan_csj_full_screen_video_rate() + " hytechVedioAdWeight:" + data.getVedioplan_hytech_vedio_rate()+ " mintegralVedioAdWeight:" + data.getVedioplan_mintegral_vedio_rate());
// 广告完成数
AppConfig.csjVedioAdCount = data.getVedioplan_csj_vedio_surplus();
AppConfig.ylhAdCount = data.getVedioplan_lyh_vedio_surplus();
AppConfig.csjFullAdCount = data.getVedioplan_csj_full_screen_video_surplus();
AppConfig.hytechVedioAdCount = data.getVedioplan_hytech_vedio_surplus();
AppConfig.mintegralAdCount = 0;
AppConfig.mintegralAdCount = data.getVedioplan_mintegral_vedio_surplus();
System.out.println("mcg __ 首页广告完成数:csjVedioAdCount:" + data.getVedioplan_csj_vedio_surplus() + " ylhAdCount:" + data.getVedioplan_lyh_vedio_surplus() + " csjFullAdCount:" + data.getVedioplan_csj_full_screen_video_surplus() + " hytechVedioAdCount:" + data.getVedioplan_hytech_vedio_surplus()+ " mintegralVedioAdCount:" + data.getVedioplan_mintegral_vedio_surplus());
// AppConfig.csjVedioAdCount = 0;
// AppConfig.ylhAdCount = 0;
// AppConfig.csjFullAdCount = 0;
// AppConfig.hytechVedioAdCount = 0;
// AppConfig.mintegralAdCount = 20;
AppConfig.yilanVedioTime = data.getRedPacketSecond();
System.out.println("mcg __ 首页广告完成数:csjVedioAdCount:" + data.getVedioplan_csj_vedio_surplus() + " ylhAdCount:" + data.getVedioplan_lyh_vedio_surplus() + " csjFullAdCount:" + data.getVedioplan_csj_full_screen_video_surplus() + " hytechVedioAdCount:" + data.getVedioplan_hytech_vedio_surplus());
userManager.setAdShowFlag(data.isAdFlag());
// 显示游戏文字
......
......@@ -24,6 +24,7 @@ import com.mints.highgold.mvp.model.BannerInfoBean;
import com.mints.highgold.mvp.model.MyInfo;
import com.mints.highgold.mvp.presenters.MyPresenter;
import com.mints.highgold.mvp.views.MyView;
import com.mints.highgold.ui.activitys.Aboutas2Activity;
import com.mints.highgold.ui.activitys.AboutasActivity;
import com.mints.highgold.ui.activitys.DrawcashActivity;
import com.mints.highgold.ui.activitys.FeekbackActivity;
......@@ -226,6 +227,7 @@ public class MyFragment extends BaseFragment
break;
case R.id.rl_my_aboutas:
readyGo(AboutasActivity.class);
// readyGo(Aboutas2Activity.class);
break;
case R.id.tv_my_invitecode_copy:
case R.id.tv_my_invitecode:
......
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.activitys.Aboutas2Activity">
</android.support.constraint.ConstraintLayout>
\ No newline at end of file
......@@ -20,7 +20,6 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// TalkingDada 灵动事件
// classpath 'com.tendcloud:codeless-gradle-plugin:0.0.2'
}
......
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