Commit afa4a2a3 authored by mengcuiguang's avatar mengcuiguang

显示广告

parent 226515d1
...@@ -10,8 +10,8 @@ android { ...@@ -10,8 +10,8 @@ android {
applicationId "com.mints.highgold" applicationId "com.mints.highgold"
minSdkVersion rootProject.ext.androidMinSdkVersion minSdkVersion rootProject.ext.androidMinSdkVersion
targetSdkVersion rootProject.ext.androidTargetSdkVersion targetSdkVersion rootProject.ext.androidTargetSdkVersion
versionCode 1 versionCode 2
versionName "1.0.0" versionName "1.0.1"
flavorDimensions "default" flavorDimensions "default"
// dex突破65535的限制 // dex突破65535的限制
......
...@@ -151,10 +151,10 @@ public class MintsApplication extends MultiDexApplication { ...@@ -151,10 +151,10 @@ public class MintsApplication extends MultiDexApplication {
ForegroundOrBackground.init(this); ForegroundOrBackground.init(this);
// 猎豹游戏初始化 // 猎豹游戏初始化
// LiebaoManager.getInstance().initCmGameSdk(); LiebaoManager.getInstance().initCmGameSdk();
// 积分初始化 // 积分初始化
// initGold(this); initGold(this);
// 初始化ShareSDK // 初始化ShareSDK
MobSDK.init(this); MobSDK.init(this);
...@@ -170,7 +170,7 @@ public class MintsApplication extends MultiDexApplication { ...@@ -170,7 +170,7 @@ public class MintsApplication extends MultiDexApplication {
//穿山甲SDK初始化 //穿山甲SDK初始化
//强烈建议在应用对应的Application#onCreate()方法中调用,避免出现content为null的异常 //强烈建议在应用对应的Application#onCreate()方法中调用,避免出现content为null的异常
// TTAdManagerHolder.init(this); TTAdManagerHolder.init(this);
// 极光推送 // 极光推送
BindJpush(); BindJpush();
...@@ -179,7 +179,7 @@ public class MintsApplication extends MultiDexApplication { ...@@ -179,7 +179,7 @@ public class MintsApplication extends MultiDexApplication {
// initBaiduVedio(); // initBaiduVedio();
// 一览视频 // 一览视频
// initYL(); initYL();
// 鱼丸盒子 // 鱼丸盒子
// if (UserManager.getInstance().userIsLogin()) { // if (UserManager.getInstance().userIsLogin()) {
...@@ -226,13 +226,13 @@ public class MintsApplication extends MultiDexApplication { ...@@ -226,13 +226,13 @@ public class MintsApplication extends MultiDexApplication {
@Override @Override
public void onSuccess() { public void onSuccess() {
AppConfig.lyAdSdkInitState = true; AppConfig.lyAdSdkInitState = true;
// System.out.println("lyAd success"); System.out.println("lyAd success");
} }
@Override @Override
public void onFailed(int code) { public void onFailed(int code) {
AppConfig.lyAdSdkInitState = false; AppConfig.lyAdSdkInitState = false;
// System.out.println("lyAd fail" + code); System.out.println("lyAd fail" + code);
} }
}); });
} }
...@@ -361,7 +361,7 @@ public class MintsApplication extends MultiDexApplication { ...@@ -361,7 +361,7 @@ public class MintsApplication extends MultiDexApplication {
.setCrashOpen(false) .setCrashOpen(false)
.setApplication(this) .setApplication(this)
.setAccessKey("yleoq95t1aro") .setAccessKey("yleoq95t1aro")
.setAccessToken("m8de8rdyqiulcymymijh32pgq9pxgh9xZ") .setAccessToken("m8de8rdyqiulcymymijh32pgq9pxgh9x")
.build(); .build();
//页面个性化配置 //页面个性化配置
......
...@@ -94,18 +94,21 @@ public class CsjFullVedioAdManager implements LyVedioAdManagerView { ...@@ -94,18 +94,21 @@ public class CsjFullVedioAdManager implements LyVedioAdManagerView {
case Constant.CARRIER_OFFLINE_DOUBLE:// 离线收益翻倍 case Constant.CARRIER_OFFLINE_DOUBLE:// 离线收益翻倍
codeId = TTAdManagerHolder.TT_AD_ALLVEDIO_ID_OFFLINE_DOUBLE; codeId = TTAdManagerHolder.TT_AD_ALLVEDIO_ID_OFFLINE_DOUBLE;
break; break;
case Constant.CARRIER_DRINK_PATCH:// 喝水补卡 // case Constant.CARRIER_DRINK_PATCH:// 喝水补卡
codeId = TTAdManagerHolder.TT_AD_ALLVEDIO_ID_DRINK_PATCH; // codeId = TTAdManagerHolder.TT_AD_ALLVEDIO_ID_DRINK_PATCH;
break; // break;
case Constant.CARRIER_VERSUS_DRINKTEA://喝饮料 // case Constant.CARRIER_VERSUS_DRINKTEA://喝饮料
codeId = TTAdManagerHolder.TT_AD_ALLVEDIO_ID_VERSUS_DRINKTEA; // codeId = TTAdManagerHolder.TT_AD_ALLVEDIO_ID_VERSUS_DRINKTEA;
break; // break;
case Constant.CARRIER_CHALLENGE_TURN:// 挑战大转盘 case Constant.CARRIER_CHALLENGE_TURN:// 挑战大转盘
codeId = TTAdManagerHolder.TT_AD_ALLVEDIO_ID_CHALLENGE_TURN; codeId = TTAdManagerHolder.TT_AD_ALLVEDIO_ID_CHALLENGE_TURN;
break; break;
case Constant.CARRIER_CHALLENGE_CARD:// 挑战刮刮乐 case Constant.CARRIER_CHALLENGE_CARD:// 挑战刮刮乐
codeId = TTAdManagerHolder.TT_AD_ALLVEDIO_ID_CHALLENGE_CARD; codeId = TTAdManagerHolder.TT_AD_ALLVEDIO_ID_CHALLENGE_CARD;
break; break;
default: // 激励视频异常或其他 时使用
codeId = TTAdManagerHolder.TT_AD_ALLVEDIO_ID_EXCEPTION;
break;
} }
AdSlot adSlot = new AdSlot.Builder() AdSlot adSlot = new AdSlot.Builder()
......
...@@ -122,9 +122,9 @@ public class CsjVedioAdManager implements LyVedioAdManagerView { ...@@ -122,9 +122,9 @@ public class CsjVedioAdManager implements LyVedioAdManagerView {
case Constant.CARRIER_DRINK_PATCH:// 喝水补卡 case Constant.CARRIER_DRINK_PATCH:// 喝水补卡
codeId = TTAdManagerHolder.TT_AD_VEDIO_DRINK; codeId = TTAdManagerHolder.TT_AD_VEDIO_DRINK;
break; break;
case Constant.CARRIER_VERSUS_DRINKTEA://喝饮料 // case Constant.CARRIER_VERSUS_DRINKTEA://喝饮料
codeId = TTAdManagerHolder.TT_AD_VEDIO_DRINKTEA; // codeId = TTAdManagerHolder.TT_AD_VEDIO_DRINKTEA;
break; // break;
case Constant.CARRIER_DAILY_TURN:// 首页大转盘 case Constant.CARRIER_DAILY_TURN:// 首页大转盘
codeId = TTAdManagerHolder.TT_AD_VEDIO_TURNABLE; codeId = TTAdManagerHolder.TT_AD_VEDIO_TURNABLE;
break; break;
......
...@@ -47,7 +47,7 @@ public class VedioAdingManager { ...@@ -47,7 +47,7 @@ public class VedioAdingManager {
} }
private VedioAdingManager(Activity activity) { private VedioAdingManager(Activity activity) {
// init(activity); init(activity);
return; return;
} }
......
...@@ -22,7 +22,7 @@ public class AlipayManager { ...@@ -22,7 +22,7 @@ public class AlipayManager {
/** /**
* 用于支付宝支付业务的入参 app_id。 * 用于支付宝支付业务的入参 app_id。
*/ */
public static final String APPID = "2019102968695736"; public static final String APPID = "2021001154641144";
/** /**
* 用于支付宝账户登录授权业务的入参 pid。 * 用于支付宝账户登录授权业务的入参 pid。
...@@ -39,7 +39,7 @@ public class AlipayManager { ...@@ -39,7 +39,7 @@ public class AlipayManager {
* 建议使用支付宝提供的公私钥生成工具生成和获取 RSA2_PRIVATE。 * 建议使用支付宝提供的公私钥生成工具生成和获取 RSA2_PRIVATE。
* 工具地址:https://doc.open.alipay.com/docs/doc.htm?treeId=291&articleId=106097&docType=1 * 工具地址:https://doc.open.alipay.com/docs/doc.htm?treeId=291&articleId=106097&docType=1
*/ */
public static final String RSA2_PRIVATE = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCJHd23TboBNcNcb55AFP7VS5goNa9dmVFhvzLJnk/Whz6HRP1pWZ7ty7dw8rsqctmVRvkTMgVdrXJ0GTI6eI7wRARVfTQLVaePtJO0r2Hw2am2p3uMCBvsm7/n3hd7sg1wV/qkKCAgbT7xSv+kpz183oM/eFMTbghyJBmaRfMRE13E95HwkbFLFyrdPP54pF3mRd6spWFhRiQlPsUk+zItcw08PYrjFi6M0pM/RWahm0+/fniTk2hIXS3HGGod/UxnJKpBW0n9/aj/ktONtBZ0ftF1C+oJC0QIO+gIJy9M7WxYq/DjBZM+W/+nFHN7/pWhvQcnvF8vUhUSFRTmmoq5AgMBAAECggEAdmQ2S46uW1sbmxW5U2WNf4ftElMAX1YBgd/AL3wlPXu7TrsP/8XlRzfN5ZWAbC+MlasZZyyam38mwv36c6gi62wfPd2EcYD81EU8ABgq/fZC5raII6ngypTUx5TpO+HKXsVoYhNPYhBR97AlOfs5STcrpkLzoGQyoLNw89cQAB4sKVIv2m7ZYbxCn2w/2N0IAU3xdiZQayLWt60pyofISCqhw0PBRO0UqvLJpkZFyC8Z1ho4OrYT1sH2364TapPXGrjYDPlBXN60nqBR0fgq7K7VHhXya/Uem31cJE7lk8pL0EobW+BI+nwlHd4hM9+B/+HykG/QSA980MGwFK0RMQKBgQDbDEhkdJ7uXVtbB24aLb0tEZB20zp/AkIdjnjhWZAh12avMh9Px5h2ZR2m66eeyu3ZJ4o3qoSdTbKftzDr3pFCp+ShA2BAmJFLMv46y6wVafMDGZ/6amqJA9mnzEBwwbzFOfPEEWqBK/xt8Ez56/qT+J2OlSoR+itC+rvUd25O9QKBgQCgP1SraolnFYmYAFbE5BT+DUplVon790iZ7vy20qUd4ZiibxZJ8Wu3NHZd84krQrhwO12TUexCNvMTkTNcPgqBphjOEHxeFJxT5QPQGUt+Yk71hr5EIOc66HY2ZnoCo/bOXh1deXv1q8zI+YQoRUoWpU83IGNrqxfzaM9mwpAqNQKBgQCtwyyaI7j/tacGqvo4YhgzbD+BQ0agAhaYg7B4cyfW8JxQVh5olxjmsoe3JjEt0iSjoq4OQoI4lq4f7J4uPbxVeAHxiFAObfi0ApuR4Id95TIVP3qcl1Yzoo5CgdCMoeMxQSuSWY53MYFpZLprdzqrrwitVr6szBsNYwElJiinEQKBgEH+kvIdaATqG8ZbrWBcxkByXMcrQpxgFKhAghcQ3StXMzMCKN2+7SuAEZdTqpQEYEzoRftb677BPo46aDp+2njWXLTQmUdtmYv7bvyOzkZ4WihHm6gXHONnxPdWcL0RpZ0LqXBLjb95R1clW0XyczasUdlUH13CEpUN/wxE6HZZAoGAI22RzJbLgSDO0+uvt946/aQJ8Fs9cq+tRc16AeIzxP8jePtHbKPBdgufgEK68psKCXbP2KzBJHxc4y+Ht7cv3q2duEf0Ky2HNI+RVOOBkbxPFls9krBIR0KFZK0Dq/qaYNTuno+YuEG8VCnELfsAST6vnizIth+1xEow5JINprA="; public static final String RSA2_PRIVATE = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCKgMOkimaqy0VItuRI8p5JHAZTMuZ3L0V34l4EWuALOPwEd6i2stH8/VyZ7yAosLO6mdFERxbkJHec96kKRIoF/M1INcMuc3vNUGLzPXRI1eBVHNVcP2Ajn9AofXxwH7SCAZSVU84guElI8c7J/z0cVrpmRGeNr1CCGHGuuQLlOG2Se4heelPhCm9ONDx37MBmgMOPS/YWVfIYrOv1hJdUQCmjqqbYBL+1y4tZ6agXJfC58FKxhkxGd8QDG4pqZmJqkKBXdim8JuAxkKQvn2UScdHf/Ba9ETzKU6YSx8/b7cbjQeHaTDcHB8REuEdyslOvG4iF4RkDdJT6bbYl+IwrAgMBAAECggEAL7NXLhUIdOwbCYcLql/8ybsgJolSPFwIddh9fsx5ewP+L9+yOHHvxkzQFqf3kGwDClItc3F0XdB9bY8SJdojGxrM7ICvnxDg4347BgD1Spx2bXnHtcSR7NL+kuNc9xTESz4WGTPKuxQdEUVObd09A8SO3+fRLkfh11xp0r4fVCgO4VWO9v1ioTDClOlSRIRWOmm6l9Q5iBfhriG2DBcdlR9J+DdUipAqyXgljubhyfrzGBxHTUp137igytsagRCjBsT3TzVnI5JK7kG8qXEmMlHlt/3wJLjMFjjrpDAXVWhOJhY96BseqMm4mNP5LLAVDDBUJJpEtrD3BZr5CoOrMQKBgQDaHcNfjqsWwWpnsEpx2bfGwBzRQzFnCYvbk09RJI8moyXvQNhpHx440ZJ86gmuMP7IsolYxEtbZIOV63AjLSGMiEre26e75Qo4gaeXQMFOvY/JeZ8ICHD4QaA+TRaAh8Di9IMlzGIdhNJFF2lGodhcWElFmiDGrYRCaTDW1H1QiQKBgQCijxtxnBjxfRcLN0rDcLrklzoGw2O15IVKQGnLnJovsCyCo905D9n6jMP77SRlAMOkE1dUvErRX14qQ8S0AubDlas1f7MugcUZvGbSnzQb5SnN8cthIbPea/6AkIknQH1gza3BdeXCIYlyIKIVTaT30uMW0vP4Lb8UMPeQwhaCEwKBgQCCaOk3aQXCRUJpXG4mRBYtLxALzjDrejm0vw7dZQ5x+3ni4tKBh6l6L1N2fDftfj3XoWedO0ATFLXYHTyey40TiSm6tXpETV0fC+Y3+O+bNJuTyrPbCbEBvbshhNW/Y2tgRvFi2CCRpahSxvyazomeLOsiQlT2dShuzJX23HVQgQKBgC4LQOe+IiaMmvFXWPrgvF8xIoN15pFHyCVO92hv1BB74y+hwHCAN+rK4lxCQFPHkqKvw8XBi6OgUqjAB0BBriFqDFOb9yHOKgjvH2S7KWRZVaz6tvOtOyheCHlb9y1CDAFWYMfyYADLxQWpjp9gHcEAX8hAOlBqjLvoXscG4p83AoGBALDPcGtUn6AoQ7ZBEYu/agWT8RMIzMP4c73NNWw1OfPBd27Zh2iMNSY0e47dEd/uaPVGHhdWCUlYqAvuuWUfBymsfIH+/od/J4JPYVxp4VN4RrBj3v0GLGPQFWTwSsoOWs5YnKv+JY/i23f5o/BS0kqwYo8lO2Y44xlm67xhabsw";
public static final String RSA_PRIVATE = ""; public static final String RSA_PRIVATE = "";
private static final int SDK_AUTH_FLAG = 2; private static final int SDK_AUTH_FLAG = 2;
......
...@@ -25,12 +25,12 @@ public class LiebaoManager { ...@@ -25,12 +25,12 @@ public class LiebaoManager {
/** /**
* APP_ID * APP_ID
*/ */
public static final String APP_ID = "taojinkongjian"; public static final String APP_ID = "taojinkongjiangaoeban";
/** /**
* APP_HOST * APP_HOST
*/ */
public static final String APP_HOST = "https://tjkj-xyx-big-svc.beike.cn"; public static final String APP_HOST = "https://tjkjgeb-xyx-big-svc.beike.cn";
private static LiebaoManager _inst; private static LiebaoManager _inst;
private Context context; private Context context;
......
...@@ -12,54 +12,51 @@ import com.mints.highgold.BuildConfig; ...@@ -12,54 +12,51 @@ import com.mints.highgold.BuildConfig;
*/ */
public class TTAdManagerHolder { public class TTAdManagerHolder {
public static final String TT_AD_APPID = "5038593"; public static final String TT_AD_APPID = "5060006";
public static final String TT_AD_NAME = "淘金空间"; public static final String TT_AD_NAME = "淘金空间高额版";
/*开屏*/ /*开屏*/
public static final String TT_AD_SPLASH_ID = "838593986";//开屏 public static final String TT_AD_SPLASH_ID = "887315187";//开屏
/*激励视频*/ /*激励视频*/
public static final String TT_AD_VEDIO_MAIN_DEV = "938593319";// 开发使用 public static final String TT_AD_VEDIO_MAIN_DEV = "945131812";// 开发使用
public static final String TT_AD_VEDIO_MAIN_DOWNLOAD = "938593158";//首页点一点 public static final String TT_AD_VEDIO_MAIN_DOWNLOAD = "945131817";//首页点一点
public static final String TT_AD_VEDIO_MAIN_LOOK = "938593832";//首页看视频 public static final String TT_AD_VEDIO_MAIN_LOOK = "945131816";//首页看视频
public static final String TT_AD_VEDIO_DRINK = "938593477";//喝水打卡 public static final String TT_AD_VEDIO_DRINK = "945131819";//喝水打卡
public static final String TT_AD_VEDIO_MAIN_2 = "941212842";// 挑战前两项活动使用(首页2) public static final String TT_AD_VEDIO_MAIN_2 = "945131807";// 挑战前两项活动使用(首页2)
public static final String TT_AD_VEDIO_ERASE = "943509180";// 刮刮乐 public static final String TT_AD_VEDIO_ERASE = "945131797";// 刮刮乐
public static final String TT_AD_VEDIO_TURNABLE = "943509178";// 挑战大转盘 public static final String TT_AD_VEDIO_TURNABLE = "945131803";// 挑战大转盘
public static final String TT_AD_VEDIO_GAME = "938593412";// 游戏 public static final String TT_AD_VEDIO_GAME = "945131810";// 游戏
public static final String TT_AD_VEDIO_DRINKTEA = "945018852";// 元气大作战 public static final String TT_AD_VEDIO_MOREDIALOG = "945131792";// 签到、气泡、离线弹框
public static final String TT_AD_VEDIO_MOREDIALOG = "945018855";// 签到、气泡、离线弹框 public static final String TT_AD_VEDIO_REDBOX = "945131786";// 红包
public static final String TT_AD_VEDIO_REDBOX = "945027623";// 红包
/*banner*/ /*banner*/
public static final String TT_AD_BANNER_ID_DRAWCASH = "938593660";//提现 public static final String TT_AD_BANNER_ID_DRAWCASH = "945131766";//提现
public static final String TT_AD_BANNER_ID_GOLDTRY = "938593033";//金币兑换 public static final String TT_AD_BANNER_ID_MY = "945131765";//我的
public static final String TT_AD_BANNER_ID_MY = "938593439";//我的 public static final String TT_AD_BANNER_ID_DRAWCASH_RECORD = "945131768";//提现明细
public static final String TT_AD_BANNER_ID_NEWMAIN = "944254790";//首页 public static final String TT_AD_BANNER_ID_TRYGOLD_RECORD = "";//金币明细
public static final String TT_AD_BANNER_ID_DRAWCASH_RECORD = "938593215";//提现明细 public static final String TT_AD_BANNER_ID_INCOME_RECORD = "";//收入明细
public static final String TT_AD_BANNER_ID_TRYGOLD_RECORD = "938593137";//金币明细 public static final String TT_AD_BANNER_ID_DRINK = "";//喝水打卡 *弃用 改用信息流
public static final String TT_AD_BANNER_ID_INCOME_RECORD = "938593415";//收入明细 public static final String TT_AD_BANNER_ID_VERSUS = "";//挑战活动
public static final String TT_AD_BANNER_ID_DRINK = "938593240";//喝水打卡 *弃用 改用信息流 public static final String TT_AD_BANNER_ID_DIALOG = "";//弹窗 *弃用 改用信息流
public static final String TT_AD_BANNER_ID_VERSUS = "938593007";//挑战活动
public static final String TT_AD_BANNER_ID_DIALOG = "938593321";//弹窗 *弃用 改用信息流
/*信息流*/ /*信息流*/
public static final String TT_AD_NATIVEEXPRESS_ID_DIALOG = "944255310";//信息流弹窗 public static final String TT_AD_NATIVEEXPRESS_ID_DIALOG = "945131750";//信息流弹窗
public static final String TT_AD_NATIVEEXPRESS_ID_LIEBAO_LISTEXIT = "945018886";//猎豹列表和退出 public static final String TT_AD_NATIVEEXPRESS_ID_LIEBAO_LISTEXIT = "945131730";//猎豹列表和退出
/*全屏广告*/ /*全屏广告*/
public static final String TT_AD_ALLVEDIO_ID_LIEBAO = "945019833";//猎豹全屏带跳过按钮 public static final String TT_AD_ALLVEDIO_ID_LIEBAO = "945131838";//猎豹全屏带跳过按钮
public static final String TT_AD_ALLVEDIO_ID_OFFLINE_DOUBLE = "945042793";//全屏离线收益翻倍 public static final String TT_AD_ALLVEDIO_ID_OFFLINE_DOUBLE = "945131837";//全屏离线收益翻倍
public static final String TT_AD_ALLVEDIO_ID_DRINK_PATCH = "945042795";//全屏喝水补卡 public static final String TT_AD_ALLVEDIO_ID_DRINK_PATCH = "";//全屏喝水补卡
public static final String TT_AD_ALLVEDIO_ID_VERSUS_DRINKTEA = "945042796";//全屏喝饮料 public static final String TT_AD_ALLVEDIO_ID_VERSUS_DRINKTEA = "";//全屏喝饮料
public static final String TT_AD_ALLVEDIO_ID_CHALLENGE_TURN = "945042798";//全屏挑战大转盘 public static final String TT_AD_ALLVEDIO_ID_CHALLENGE_TURN = "945131834";//全屏挑战大转盘
public static final String TT_AD_ALLVEDIO_ID_CHALLENGE_CARD = "945042800";//全屏挑战刮刮乐 public static final String TT_AD_ALLVEDIO_ID_CHALLENGE_CARD = "945131833";//全屏挑战刮刮乐
public static final String TT_AD_ALLVEDIO_ID_EXCEPTION = "945043463";//激励视频异常或其他 时使用 public static final String TT_AD_ALLVEDIO_ID_EXCEPTION = "945131829";//激励视频异常或其他 时使用
/*插屏广告*/ /*插屏广告*/
public static final String TT_AD_INSERT_ID_LIEBAO = "945040482";//猎豹插屏场景 public static final String TT_AD_INSERT_ID_LIEBAO = "945131770";//猎豹插屏场景
public static final String TT_AD_INSERT_LOADING_ID_LIEBAO = "945040479";//猎豹游戏加载时 public static final String TT_AD_INSERT_LOADING_ID_LIEBAO = "945131772";//猎豹游戏加载时
private static boolean sInit; private static boolean sInit;
......
...@@ -9,7 +9,7 @@ package com.mints.highgold.manager; ...@@ -9,7 +9,7 @@ package com.mints.highgold.manager;
public class YlhAdManager { public class YlhAdManager {
/* 优量汇appid */ /* 优量汇appid */
public static final String YLH_AD_VEDIO_APPID= "1110058445"; public static final String YLH_AD_VEDIO_APPID= "1110341375";
/* vedio-postid */ /* vedio-postid */
public static final String YLH_AD_VEDIO_MAIN_PAN_POSTID = "3030498514212299";//首页大转盘 public static final String YLH_AD_VEDIO_MAIN_PAN_POSTID = "3030498514212299";//首页大转盘
......
...@@ -117,7 +117,7 @@ public class LoanPresenter extends BasePresenter<LoanView> { ...@@ -117,7 +117,7 @@ public class LoanPresenter extends BasePresenter<LoanView> {
} else { } else {
view.getUserTaskMsgSuc(baseResponse.getData()); view.getUserTaskMsgSuc(baseResponse.getData());
getWaterMsgHome(); getWaterMsgHome();
// getGameList(); getGameList();
} }
break; break;
case 401: case 401:
...@@ -267,7 +267,7 @@ public class LoanPresenter extends BasePresenter<LoanView> { ...@@ -267,7 +267,7 @@ public class LoanPresenter extends BasePresenter<LoanView> {
// } else { // } else {
// vo.put("isShowYwhzGame", false); // vo.put("isShowYwhzGame", false);
// } // }
vo.put("isShowYwhzGame", true); vo.put("isShowYwhzGame", false);
AppHttpManager.getInstance(loanApplication) AppHttpManager.getInstance(loanApplication)
.call(loanService.getGameList(vo), .call(loanService.getGameList(vo),
......
...@@ -122,7 +122,7 @@ public class MyPresenter extends BasePresenter<MyView> { ...@@ -122,7 +122,7 @@ public class MyPresenter extends BasePresenter<MyView> {
// } else { // } else {
// vo.put("isShowYwhzGame", false); // vo.put("isShowYwhzGame", false);
// } // }
vo.put("isShowYwhzGame", true); vo.put("isShowYwhzGame", false);
AppHttpManager.getInstance(loanApplication) AppHttpManager.getInstance(loanApplication)
.call(loanService.myHotActivity(vo), .call(loanService.myHotActivity(vo),
new BaseSubscriber<BaseResponse<BannerBean>>() { new BaseSubscriber<BaseResponse<BannerBean>>() {
......
...@@ -5,6 +5,7 @@ import android.text.TextUtils; ...@@ -5,6 +5,7 @@ import android.text.TextUtils;
import com.google.gson.Gson; import com.google.gson.Gson;
import com.mints.highgold.BuildConfig; import com.mints.highgold.BuildConfig;
import com.mints.highgold.MintsApplication; import com.mints.highgold.MintsApplication;
import com.mints.highgold.common.Constant;
import com.mints.highgold.manager.UserManager; import com.mints.highgold.manager.UserManager;
import com.mints.highgold.mvp.model.AppRequest; import com.mints.highgold.mvp.model.AppRequest;
import com.mints.highgold.utils.AESUtils; import com.mints.highgold.utils.AESUtils;
...@@ -51,6 +52,7 @@ public class OkHttpInterceptor implements Interceptor { ...@@ -51,6 +52,7 @@ public class OkHttpInterceptor implements Interceptor {
addHeader("version", BuildConfig.VERSION_NAME). addHeader("version", BuildConfig.VERSION_NAME).
addHeader("token", tokenID). addHeader("token", tokenID).
addHeader("channel", channel). addHeader("channel", channel).
addHeader("pkg", Constant.MINTS_PKG_NAME).
addHeader("new-session", MD5.GetMD5Code(String.valueOf(time))). addHeader("new-session", MD5.GetMD5Code(String.valueOf(time))).
addHeader("last-session", Base64.encode(String.valueOf(time).getBytes("UTF-8"))). addHeader("last-session", Base64.encode(String.valueOf(time).getBytes("UTF-8"))).
build(); build();
......
...@@ -139,7 +139,7 @@ public class AwardActivity extends BaseActivity implements AwardView { ...@@ -139,7 +139,7 @@ public class AwardActivity extends BaseActivity implements AwardView {
@Override @Override
protected void initViewsAndEvents() { protected void initViewsAndEvents() {
// initExpress(); initExpress();
awardPresenter = new AwardPresenter(); awardPresenter = new AwardPresenter();
awardPresenter.attachView(this); awardPresenter.attachView(this);
...@@ -218,7 +218,7 @@ public class AwardActivity extends BaseActivity implements AwardView { ...@@ -218,7 +218,7 @@ public class AwardActivity extends BaseActivity implements AwardView {
try { try {
// TTPreLoadExpressManager.getInstance().loadTtFrameLayout(getContext()); TTPreLoadExpressManager.getInstance().loadTtFrameLayout(getContext());
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
...@@ -554,7 +554,7 @@ public class AwardActivity extends BaseActivity implements AwardView { ...@@ -554,7 +554,7 @@ public class AwardActivity extends BaseActivity implements AwardView {
break; break;
case Constant.CARRIER_ONLINE_INCOME_DOUBLE:// 在线收益翻倍 case Constant.CARRIER_ONLINE_INCOME_DOUBLE:// 在线收益翻倍
tvAwardContent.setText("在线收益奖励" + curCoin + "金币"); tvAwardContent.setText("在线收益奖励" + curCoin + "金币");
tvAwardNext.setText("金币翻倍"); tvAwardNext.setText("领取金币");
break; break;
case Constant.CARRIER_OFFLINE_DOUBLE:// 离线收益翻倍 case Constant.CARRIER_OFFLINE_DOUBLE:// 离线收益翻倍
tvAwardContent.setText("离线收益奖励" + curCoin + "金币"); tvAwardContent.setText("离线收益奖励" + curCoin + "金币");
...@@ -573,10 +573,6 @@ public class AwardActivity extends BaseActivity implements AwardView { ...@@ -573,10 +573,6 @@ public class AwardActivity extends BaseActivity implements AwardView {
llAwardBg.setBackground(getResources().getDrawable(R.mipmap.bg_award_gold)); llAwardBg.setBackground(getResources().getDrawable(R.mipmap.bg_award_gold));
// tvAwardNext.setText("我知道了"); // tvAwardNext.setText("我知道了");
break; break;
case Constant.CARRIER_REDENVELOPE_DOUBLE:// 首页红包翻倍
tvAwardContent.setText("红包奖励" + curCoin + "金币");
tvAwardNext.setText("金币翻倍");
break;
case Constant.CARRIER_SIGNIN_HOMEPAGE_CARD:// 签到翻倍 case Constant.CARRIER_SIGNIN_HOMEPAGE_CARD:// 签到翻倍
tvAwardContent.setText("签到奖励" + curCoin + "金币"); tvAwardContent.setText("签到奖励" + curCoin + "金币");
tvAwardNext.setText("金币翻倍"); tvAwardNext.setText("金币翻倍");
...@@ -605,6 +601,7 @@ public class AwardActivity extends BaseActivity implements AwardView { ...@@ -605,6 +601,7 @@ public class AwardActivity extends BaseActivity implements AwardView {
case Constant.CARRIER_CHALLENGE_TURN:// 挑战大转盘 case Constant.CARRIER_CHALLENGE_TURN:// 挑战大转盘
case Constant.CARRIER_CHALLENGE_CARD:// 挑战刮刮乐 case Constant.CARRIER_CHALLENGE_CARD:// 挑战刮刮乐
case Constant.CARRIER_REDENVELOPE:// 红包点击领取 case Constant.CARRIER_REDENVELOPE:// 红包点击领取
case Constant.CARRIER_REDENVELOPE_DOUBLE:// 首页红包翻倍
tvAwardContent.setText("点击领取" + curCoin + "金币"); tvAwardContent.setText("点击领取" + curCoin + "金币");
tvAwardNext.setText("领取金币"); tvAwardNext.setText("领取金币");
break; break;
...@@ -933,9 +930,9 @@ public class AwardActivity extends BaseActivity implements AwardView { ...@@ -933,9 +930,9 @@ public class AwardActivity extends BaseActivity implements AwardView {
case Constant.CARRIER_DRINK_PATCH:// 喝水补卡 case Constant.CARRIER_DRINK_PATCH:// 喝水补卡
codeId = TTAdManagerHolder.TT_AD_VEDIO_DRINK; codeId = TTAdManagerHolder.TT_AD_VEDIO_DRINK;
break; break;
case Constant.CARRIER_VERSUS_DRINKTEA://喝饮料 // case Constant.CARRIER_VERSUS_DRINKTEA://喝饮料
codeId = TTAdManagerHolder.TT_AD_VEDIO_DRINKTEA; // codeId = TTAdManagerHolder.TT_AD_VEDIO_DRINKTEA;
break; // break;
case Constant.CARRIER_DAILY_TURN:// 首页大转盘 case Constant.CARRIER_DAILY_TURN:// 首页大转盘
codeId = TTAdManagerHolder.TT_AD_VEDIO_TURNABLE; codeId = TTAdManagerHolder.TT_AD_VEDIO_TURNABLE;
break; break;
...@@ -1075,18 +1072,21 @@ public class AwardActivity extends BaseActivity implements AwardView { ...@@ -1075,18 +1072,21 @@ public class AwardActivity extends BaseActivity implements AwardView {
case Constant.CARRIER_OFFLINE_DOUBLE:// 离线收益翻倍 case Constant.CARRIER_OFFLINE_DOUBLE:// 离线收益翻倍
codeId = TTAdManagerHolder.TT_AD_ALLVEDIO_ID_OFFLINE_DOUBLE; codeId = TTAdManagerHolder.TT_AD_ALLVEDIO_ID_OFFLINE_DOUBLE;
break; break;
case Constant.CARRIER_DRINK_PATCH:// 喝水补卡 // case Constant.CARRIER_DRINK_PATCH:// 喝水补卡
codeId = TTAdManagerHolder.TT_AD_ALLVEDIO_ID_DRINK_PATCH; // codeId = TTAdManagerHolder.TT_AD_ALLVEDIO_ID_DRINK_PATCH;
break; // break;
case Constant.CARRIER_VERSUS_DRINKTEA://喝饮料 // case Constant.CARRIER_VERSUS_DRINKTEA://喝饮料
codeId = TTAdManagerHolder.TT_AD_ALLVEDIO_ID_VERSUS_DRINKTEA; // codeId = TTAdManagerHolder.TT_AD_ALLVEDIO_ID_VERSUS_DRINKTEA;
break; // break;
case Constant.CARRIER_CHALLENGE_TURN:// 挑战大转盘 case Constant.CARRIER_CHALLENGE_TURN:// 挑战大转盘
codeId = TTAdManagerHolder.TT_AD_ALLVEDIO_ID_CHALLENGE_TURN; codeId = TTAdManagerHolder.TT_AD_ALLVEDIO_ID_CHALLENGE_TURN;
break; break;
case Constant.CARRIER_CHALLENGE_CARD:// 挑战刮刮乐 case Constant.CARRIER_CHALLENGE_CARD:// 挑战刮刮乐
codeId = TTAdManagerHolder.TT_AD_ALLVEDIO_ID_CHALLENGE_CARD; codeId = TTAdManagerHolder.TT_AD_ALLVEDIO_ID_CHALLENGE_CARD;
break; break;
default: // 激励视频异常或其他 时使用
codeId = TTAdManagerHolder.TT_AD_ALLVEDIO_ID_EXCEPTION;
break;
} }
AdSlot adSlot = new AdSlot.Builder() AdSlot adSlot = new AdSlot.Builder()
......
...@@ -62,7 +62,7 @@ public class DrawcashRecordActivity extends BaseActivity implements DrawcashReco ...@@ -62,7 +62,7 @@ public class DrawcashRecordActivity extends BaseActivity implements DrawcashReco
drawcashRecordPresenter.attachView(this); drawcashRecordPresenter.attachView(this);
if (UserManager.getInstance().getAdShowFlag()) { if (UserManager.getInstance().getAdShowFlag()) {
// initTTBanner(); initTTBanner();
} }
// crlDrawcashrecordRefresh.setPrimaryColorsId(android.R.color.holo_red_dark, android.R.color.white); // crlDrawcashrecordRefresh.setPrimaryColorsId(android.R.color.holo_red_dark, android.R.color.white);
......
...@@ -132,7 +132,9 @@ public class FriendsNewActivity extends BaseActivity implements PlatformActionLi ...@@ -132,7 +132,9 @@ public class FriendsNewActivity extends BaseActivity implements PlatformActionLi
break; break;
case R.id.share_qq: case R.id.share_qq:
QQ.ShareParams sp = new QQ.ShareParams(); QQ.ShareParams sp = new QQ.ShareParams();
// Platform.ShareParams sp = new Platform.ShareParams();
// sp.setImageUrl("https://mints-gs.oss-cn-beijing.aliyuncs.com/pkg/mints_share/%E5%88%86%E4%BA%AB%E9%A1%B5%E5%A4%87%E4%BB%BD-QQ.png"); // sp.setImageUrl("https://mints-gs.oss-cn-beijing.aliyuncs.com/pkg/mints_share/%E5%88%86%E4%BA%AB%E9%A1%B5%E5%A4%87%E4%BB%BD-QQ.png");
// sp.setShareType(Platform.SHARE_IMAGE);
sp.setTitle(share_title); sp.setTitle(share_title);
sp.setTitleUrl(shareUrl); // 标题的超链接 sp.setTitleUrl(shareUrl); // 标题的超链接
sp.setText(share_text); sp.setText(share_text);
......
...@@ -352,22 +352,22 @@ public class LoginActivity extends BaseActivity implements LoginView { ...@@ -352,22 +352,22 @@ public class LoginActivity extends BaseActivity implements LoginView {
@Override @Override
public void loginSuc() { public void loginSuc() {
try { // try {
// 登录成功初始化鱼玩盒子userid // // 登录成功初始化鱼玩盒子userid
getBaseApplication().initYwSdk(); // getBaseApplication().initYwSdk();
} catch (Exception e) { // } catch (Exception e) {
} // }
try { // try {
// 登录成功初始化愉悦推 // 登录成功初始化愉悦推
// YuyuetuiManager.getInstance().initSdk(this); // YuyuetuiManager.getInstance().initSdk(this);
} catch (Exception e) { // } catch (Exception e) {
} // }
try { // try {
getBaseApplication().initUm(getContext()); // getBaseApplication().initUm(getContext());
} catch (Exception e) { // } catch (Exception e) {
} // }
AppConfig.mainWaterviewStatus = true; AppConfig.mainWaterviewStatus = true;
spUtil.putBoolean(Constant.USER_DEVICE_LOGIN, true); spUtil.putBoolean(Constant.USER_DEVICE_LOGIN, true);
......
...@@ -231,14 +231,14 @@ public class RedboxActivity extends BaseActivity implements RedboxView { ...@@ -231,14 +231,14 @@ public class RedboxActivity extends BaseActivity implements RedboxView {
gotoDialogActivity("8"); gotoDialogActivity("8");
break; break;
case R.id.rl_redbox_nine: case R.id.rl_redbox_nine:
// if (timerNine != null) { if (timerNine != null) {
// timerNine = null; timerNine = null;
// } }
// gotoDialogActivity("9"); gotoDialogActivity("9");
onDestoryTimer(); // onDestoryTimer();
finish(); // finish();
RxBus.getDefault().post(new EventMessage(SHOW_TWO_FRAGMENT)); // RxBus.getDefault().post(new EventMessage(SHOW_TWO_FRAGMENT));
// readyGo(FriendsNewActivity.class); // readyGo(FriendsNewActivity.class);
break; break;
case R.id.rl_redbox_ten: case R.id.rl_redbox_ten:
...@@ -291,7 +291,6 @@ public class RedboxActivity extends BaseActivity implements RedboxView { ...@@ -291,7 +291,6 @@ public class RedboxActivity extends BaseActivity implements RedboxView {
if (data.getStatus() == 1) { if (data.getStatus() == 1) {
// 看视频才能领奖励 // 看视频才能领奖励
bundle.putString(Constant.MAIN_CARRIET_TURN, Constant.CARRIER_REDENVELOPE); bundle.putString(Constant.MAIN_CARRIET_TURN, Constant.CARRIER_REDENVELOPE);
bundle.putInt(Constant.MAIN_CUR_FLAG, Constant.MAIN_CUR_TWO);
} else { } else {
// 金币翻倍 // 金币翻倍
bundle.putString(Constant.MAIN_CARRIET_TURN, Constant.CARRIER_REDENVELOPE_DOUBLE); bundle.putString(Constant.MAIN_CARRIET_TURN, Constant.CARRIER_REDENVELOPE_DOUBLE);
......
...@@ -92,7 +92,8 @@ public class SettingActivity extends BaseActivity { ...@@ -92,7 +92,8 @@ public class SettingActivity extends BaseActivity {
clearDialog(); clearDialog();
break; break;
case R.id.tv_set_quit: case R.id.tv_set_quit:
backDialog(); // backDialog();
readyGo(WxLoginActivity.class);
break; break;
} }
......
...@@ -69,11 +69,6 @@ public class SplashActivity extends BaseActivity implements WeakHandler.IHandler ...@@ -69,11 +69,6 @@ public class SplashActivity extends BaseActivity implements WeakHandler.IHandler
return; return;
} }
UserManager.getInstance().setAdShowFlag(false);
// JpushManager jpushManager = JpushManager.getInstance();
// jpushManager.setJpushAlias();
hideBottomUIMenu(); hideBottomUIMenu();
// 校验APP签名 // 校验APP签名
...@@ -154,27 +149,27 @@ public class SplashActivity extends BaseActivity implements WeakHandler.IHandler ...@@ -154,27 +149,27 @@ public class SplashActivity extends BaseActivity implements WeakHandler.IHandler
// setAnimation(); // setAnimation();
// } // }
// try { try {
// if (!NetUtils.isNetworkConnected(getContext())) { if (!NetUtils.isNetworkConnected(getContext())) {
// setAnimation(); setAnimation();
// } else { } else {
// //step2:创建TTAdNative对象 //step2:创建TTAdNative对象
// mTTAdNative = TTAdManagerHolder.get().createAdNative(this); mTTAdNative = TTAdManagerHolder.get().createAdNative(this);
// //在合适的时机申请权限,如read_phone_state,防止获取不了imei时候,下载类广告没有填充的问题 //在合适的时机申请权限,如read_phone_state,防止获取不了imei时候,下载类广告没有填充的问题
// //在开屏时候申请不太合适,因为该页面倒计时结束或者请求超时会跳转,在该页面申请权限,体验不好 //在开屏时候申请不太合适,因为该页面倒计时结束或者请求超时会跳转,在该页面申请权限,体验不好
// // TTAdManagerHolder.getInstance(this).requestPermissionIfNecessary(this); // TTAdManagerHolder.getInstance(this).requestPermissionIfNecessary(this);
// //定时,AD_TIME_OUT时间到时执行,如果开屏广告没有加载则跳转到主页面 //定时,AD_TIME_OUT时间到时执行,如果开屏广告没有加载则跳转到主页面
// mHandler.sendEmptyMessageDelayed(MSG_GO_MAIN, AD_TIME_OUT); mHandler.sendEmptyMessageDelayed(MSG_GO_MAIN, AD_TIME_OUT);
// //加载开屏广告 //加载开屏广告
// loadSplashAd(); loadSplashAd();
// } }
// } catch (Exception e) { } catch (Exception e) {
// e.printStackTrace(); e.printStackTrace();
//
// goToMainActivity(); goToMainActivity();
// } }
setAnimation(); // setAnimation();
} }
} }
......
...@@ -14,6 +14,7 @@ import com.mints.highgold.common.Constant; ...@@ -14,6 +14,7 @@ import com.mints.highgold.common.Constant;
import com.mints.highgold.login.LoginApi; import com.mints.highgold.login.LoginApi;
import com.mints.highgold.login.OnLoginListener; import com.mints.highgold.login.OnLoginListener;
import com.mints.highgold.manager.AmapLocationManager; import com.mints.highgold.manager.AmapLocationManager;
import com.mints.highgold.manager.UserManager;
import com.mints.highgold.mvp.model.WXInfo; import com.mints.highgold.mvp.model.WXInfo;
import com.mints.highgold.mvp.presenters.WxLoginPresenter; import com.mints.highgold.mvp.presenters.WxLoginPresenter;
import com.mints.highgold.mvp.views.WxLoginView; import com.mints.highgold.mvp.views.WxLoginView;
...@@ -225,22 +226,24 @@ public class WxLoginActivity extends BaseActivity implements WxLoginView, OnLogi ...@@ -225,22 +226,24 @@ public class WxLoginActivity extends BaseActivity implements WxLoginView, OnLogi
@Override @Override
public void loginSuc() { public void loginSuc() {
try { // UserManager.getInstance().userLogout();
// 登录成功初始化鱼玩盒子userid
getBaseApplication().initYwSdk();
} catch (Exception e) {
}
try { // try {
// // 登录成功初始化鱼玩盒子userid
// getBaseApplication().initYwSdk();
// } catch (Exception e) {
// }
// try {
// 登录成功初始化愉悦推 // 登录成功初始化愉悦推
// YuyuetuiManager.getInstance().initSdk(this); // YuyuetuiManager.getInstance().initSdk(this);
} catch (Exception e) { // } catch (Exception e) {
} // }
try { // try {
getBaseApplication().initUm(getContext()); // getBaseApplication().initUm(getContext());
} catch (Exception e) { // } catch (Exception e) {
} // }
AppConfig.mainWaterviewStatus = true; AppConfig.mainWaterviewStatus = true;
spUtil.putBoolean(Constant.USER_DEVICE_LOGIN, true); spUtil.putBoolean(Constant.USER_DEVICE_LOGIN, true);
......
...@@ -117,7 +117,7 @@ public class MyFragment extends BaseFragment ...@@ -117,7 +117,7 @@ public class MyFragment extends BaseFragment
gvMy.setOnItemClickListener(this); gvMy.setOnItemClickListener(this);
// 加载banner广告 // 加载banner广告
// initTTBanner(); initTTBanner();
} }
/** /**
...@@ -148,13 +148,13 @@ public class MyFragment extends BaseFragment ...@@ -148,13 +148,13 @@ public class MyFragment extends BaseFragment
super.onResume(); super.onResume();
//应用商店上线隐藏广告 //应用商店上线隐藏广告
// if (userManager.getAdShowFlag()) { if (userManager.getAdShowFlag()) {
// if (ttUtil != null && flMyTtbanner != null) { if (ttUtil != null && flMyTtbanner != null) {
// ttUtil.getBannerInit(getContext(), TTAdManagerHolder.TT_AD_BANNER_ID_MY, flMyTtbanner, 370, 80); ttUtil.getBannerInit(getContext(), TTAdManagerHolder.TT_AD_BANNER_ID_MY, flMyTtbanner, 370, 80);
// } }
// } else { } else {
// flMyTtbanner.setVisibility(View.GONE); flMyTtbanner.setVisibility(View.GONE);
// } }
if (AppConfig.fragmentClickFlag == Constant.FRAGMENT_CLICK_MY) { if (AppConfig.fragmentClickFlag == Constant.FRAGMENT_CLICK_MY) {
if (!TextUtils.isEmpty(userManager.getUserID())) { if (!TextUtils.isEmpty(userManager.getUserID())) {
...@@ -348,53 +348,53 @@ public class MyFragment extends BaseFragment ...@@ -348,53 +348,53 @@ public class MyFragment extends BaseFragment
@Override @Override
public void getMyRotationChartSuc(BannerBean data) { public void getMyRotationChartSuc(BannerBean data) {
if (data != null && !data.isShow()) { // if (data != null && !data.isShow()) {
bvMyBanner.setVisibility(View.GONE);
return;
}
bvMyBanner.setVisibility(View.VISIBLE);
setBannerAdapter(data.getList());
// if (UserManager.getInstance().getAdShowFlag()) {
// if (data != null && !data.isShow()) {
// bvMyBanner.setVisibility(View.GONE);
// return;
// }
// bvMyBanner.setVisibility(View.VISIBLE);
// setBannerAdapter(data.getList());
// } else {
// bvMyBanner.setVisibility(View.GONE); // bvMyBanner.setVisibility(View.GONE);
// return;
// } // }
// bvMyBanner.setVisibility(View.VISIBLE);
// setBannerAdapter(data.getList());
if (UserManager.getInstance().getAdShowFlag()) {
if (data != null && !data.isShow()) {
bvMyBanner.setVisibility(View.GONE);
return;
}
bvMyBanner.setVisibility(View.VISIBLE);
setBannerAdapter(data.getList());
} else {
bvMyBanner.setVisibility(View.GONE);
}
} }
@Override @Override
public void getMyHotActivitySuc(BannerBean data) { public void getMyHotActivitySuc(BannerBean data) {
if (data != null && !data.isShow()) { // if (data != null && !data.isShow()) {
llMyHot.setVisibility(View.GONE);
return;
}
llMyHot.setVisibility(View.VISIBLE);
hotList = data.getList();
if (myAdapter != null) {
myAdapter = null;
}
myAdapter = new MyAdapter(getContext(), hotList);
gvMy.setAdapter(myAdapter);
// if (UserManager.getInstance().getAdShowFlag()) {
// if (data != null && !data.isShow()) {
// llMyHot.setVisibility(View.GONE);
// return;
// }
// llMyHot.setVisibility(View.VISIBLE);
// hotList = data.getList();
// if (myAdapter != null) {
// myAdapter = null;
// }
// myAdapter = new MyAdapter(getContext(), hotList);
// gvMy.setAdapter(myAdapter);
// } else {
// llMyHot.setVisibility(View.GONE); // llMyHot.setVisibility(View.GONE);
// return;
// }
// llMyHot.setVisibility(View.VISIBLE);
// hotList = data.getList();
// if (myAdapter != null) {
// myAdapter = null;
// } // }
// myAdapter = new MyAdapter(getContext(), hotList);
// gvMy.setAdapter(myAdapter);
if (UserManager.getInstance().getAdShowFlag()) {
if (data != null && !data.isShow()) {
llMyHot.setVisibility(View.GONE);
return;
}
llMyHot.setVisibility(View.VISIBLE);
hotList = data.getList();
if (myAdapter != null) {
myAdapter = null;
}
myAdapter = new MyAdapter(getContext(), hotList);
gvMy.setAdapter(myAdapter);
} else {
llMyHot.setVisibility(View.GONE);
}
} }
private void setUserLoginStatus() { private void setUserLoginStatus() {
......
...@@ -927,19 +927,19 @@ public class VersusFragment extends BaseFragment ...@@ -927,19 +927,19 @@ public class VersusFragment extends BaseFragment
} }
// 鱼玩盒子 // 鱼玩盒子
if (userManager.getAdShowFlag()) { // if (userManager.getAdShowFlag()) {
// if (Build.VERSION.SDK_INT <= 28) { //// if (Build.VERSION.SDK_INT <= 28) {
// 目前只支持anrdoid 10以下 // // 目前只支持anrdoid 10以下
tvVersusYwhzgold.setText("+" + data.getYwhzCoin()); // tvVersusYwhzgold.setText("+" + data.getYwhzCoin());
if (data.isYwhzShow()) { // if (data.isYwhzShow()) {
llVersusYwhz.setVisibility(View.VISIBLE); // llVersusYwhz.setVisibility(View.VISIBLE);
viewVersusYwhz.setVisibility(View.VISIBLE); // viewVersusYwhz.setVisibility(View.VISIBLE);
} else { // } else {
llVersusYwhz.setVisibility(View.GONE); // llVersusYwhz.setVisibility(View.GONE);
viewVersusYwhz.setVisibility(View.GONE); // viewVersusYwhz.setVisibility(View.GONE);
}
// } // }
} //// }
// }
// ---------------------------- // ----------------------------
//第一次喝水 Complete 0-未完成 1-完成 2-领取 //第一次喝水 Complete 0-未完成 1-完成 2-领取
...@@ -1691,7 +1691,7 @@ public class VersusFragment extends BaseFragment ...@@ -1691,7 +1691,7 @@ public class VersusFragment extends BaseFragment
spUtil = SPUtil.getInstance(getContext()); spUtil = SPUtil.getInstance(getContext());
// 加载banner广告 // 加载banner广告
// initTTBanner(); initTTBanner();
} }
/** /**
......
...@@ -99,7 +99,6 @@ ...@@ -99,7 +99,6 @@
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:visibility="gone"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="20pt" android:layout_margin="20pt"
......
...@@ -110,7 +110,6 @@ ...@@ -110,7 +110,6 @@
android:src="@mipmap/ic_drawcash_wx_enable" /> android:src="@mipmap/ic_drawcash_wx_enable" />
<ImageView <ImageView
android:visibility="invisible"
android:id="@+id/iv_drawcash_alipay" android:id="@+id/iv_drawcash_alipay"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="136pt" android:layout_height="136pt"
...@@ -242,17 +241,11 @@ ...@@ -242,17 +241,11 @@
android:textSize="16sp" /> android:textSize="16sp" />
<Button <Button
android:visibility="invisible"
android:id="@+id/btn_drawcash_six"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="160pt" android:layout_height="160pt"
android:layout_marginLeft="16pt" android:layout_marginLeft="16pt"
android:layout_weight="1" android:layout_weight="1"
android:background="@drawable/rb_index_checked" android:visibility="invisible" />
android:gravity="center"
android:text="提现50元"
android:textColor="@drawable/rb_index_text_color"
android:textSize="16sp" />
</LinearLayout> </LinearLayout>
......
...@@ -60,7 +60,6 @@ ...@@ -60,7 +60,6 @@
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:visibility="gone"
android:id="@+id/tab_rl_game" android:id="@+id/tab_rl_game"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
...@@ -97,7 +96,6 @@ ...@@ -97,7 +96,6 @@
android:layout_height="match_parent"> android:layout_height="match_parent">
<ImageView <ImageView
android:visibility="gone"
android:layout_width="12pt" android:layout_width="12pt"
android:layout_height="12pt" android:layout_height="12pt"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
...@@ -132,7 +130,6 @@ ...@@ -132,7 +130,6 @@
<LinearLayout <LinearLayout
android:visibility="gone"
android:id="@+id/tab_rl_money" android:id="@+id/tab_rl_money"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
......
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
android:background="@drawable/shape_bg_write" android:background="@drawable/shape_bg_write"
android:elevation="2dip" android:elevation="2dip"
android:gravity="center" android:gravity="center"
android:text="退出" android:text="切换账号"
android:textColor="@color/product_net_text" android:textColor="@color/product_net_text"
android:textSize="16sp" android:textSize="16sp"
android:visibility="gone" /> android:visibility="gone" />
......
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