Commit 8c39e26c authored by mengcuiguang's avatar mengcuiguang

修改红包、汽泡、提现流程

parent afa4a2a3
...@@ -288,8 +288,6 @@ dependencies { ...@@ -288,8 +288,6 @@ dependencies {
testImplementation 'junit:junit:4.12' testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
// 透明指示层
implementation 'me.toptas.fancyshowcase:fancyshowcaseview:1.1.5'
// implementation 'com.jaredrummler:android-processes:1.1.1' // implementation 'com.jaredrummler:android-processes:1.1.1'
} }
...@@ -133,13 +133,8 @@ public class MintsApplication extends MultiDexApplication { ...@@ -133,13 +133,8 @@ public class MintsApplication extends MultiDexApplication {
* 三方配置 * 三方配置
*/ */
private void thirdConfig() { private void thirdConfig() {
//获取OAID等设备标识符 //移动安装联盟 获取OAID等设备标识符
try { initMiitHelper();
MiitHelper miitHelper = new MiitHelper(appIdsUpdater);
miitHelper.getDeviceIds(getApplicationContext());
} catch (Exception e) {
e.printStackTrace();
}
// 机型适配 // 机型适配
initRudenessScreen(); initRudenessScreen();
...@@ -153,7 +148,7 @@ public class MintsApplication extends MultiDexApplication { ...@@ -153,7 +148,7 @@ public class MintsApplication extends MultiDexApplication {
// 猎豹游戏初始化 // 猎豹游戏初始化
LiebaoManager.getInstance().initCmGameSdk(); LiebaoManager.getInstance().initCmGameSdk();
// 积分初始化 // 立言积分初始化
initGold(this); initGold(this);
// 初始化ShareSDK // 初始化ShareSDK
...@@ -166,7 +161,7 @@ public class MintsApplication extends MultiDexApplication { ...@@ -166,7 +161,7 @@ public class MintsApplication extends MultiDexApplication {
BindLogger(); BindLogger();
// PR下载附件 // PR下载附件
// initPRDownloader(); initPRDownloader();
//穿山甲SDK初始化 //穿山甲SDK初始化
//强烈建议在应用对应的Application#onCreate()方法中调用,避免出现content为null的异常 //强烈建议在应用对应的Application#onCreate()方法中调用,避免出现content为null的异常
...@@ -208,6 +203,18 @@ public class MintsApplication extends MultiDexApplication { ...@@ -208,6 +203,18 @@ public class MintsApplication extends MultiDexApplication {
// } // }
} }
/**
* 移动安装联盟 获取OAID等设备标识符
*/
private void initMiitHelper() {
try {
MiitHelper miitHelper = new MiitHelper(appIdsUpdater);
miitHelper.getDeviceIds(getApplicationContext());
} catch (Exception e) {
e.printStackTrace();
}
}
/** /**
* 机型适配 * 机型适配
*/ */
...@@ -290,43 +297,43 @@ public class MintsApplication extends MultiDexApplication { ...@@ -290,43 +297,43 @@ public class MintsApplication extends MultiDexApplication {
JPushInterface.setDefaultPushNotificationBuilder(builder); JPushInterface.setDefaultPushNotificationBuilder(builder);
} }
/** // /**
* 鱼丸盒子 // * 鱼丸盒子
*/ // */
public void initYwSdk() { // public void initYwSdk() {
UserManager userManager = UserManager.getInstance(); // UserManager userManager = UserManager.getInstance();
String userID = userManager.getUserID(); // String userID = userManager.getUserID();
if (!userManager.userIsLogin() || TextUtils.isEmpty(userID)) { // if (!userManager.userIsLogin() || TextUtils.isEmpty(userID)) {
// 用户id为空 或 未登录 = 游客 // // 用户id为空 或 未登录 = 游客
userID = "0"; // userID = "0";
} // }
//
String appid = ""; // String appid = "";
String appSecret = ""; // String appSecret = "";
if (BuildConfig.DEBUG) { // if (BuildConfig.DEBUG) {
appid = "1066"; // appid = "1066";
appSecret = "nfgpxq2x1svo50m8eicv38erc9ugsx6a"; // appSecret = "nfgpxq2x1svo50m8eicv38erc9ugsx6a";
} else { // } else {
appid = "1050"; // appid = "1050";
appSecret = "ngvbamk7h3i1psj4q4cb2vzst9ts6fml"; // appSecret = "ngvbamk7h3i1psj4q4cb2vzst9ts6fml";
} // }
//
String oaid = ""; // String oaid = "";
try { // try {
oaid = DevicesUtil.getOaid(); // oaid = DevicesUtil.getOaid();
if (oaid == null) { // if (oaid == null) {
oaid = ""; // oaid = "";
} // }
//
} catch (Exception e) { // } catch (Exception e) {
e.printStackTrace(); // e.printStackTrace();
//
} // }
//
System.out.println("mcg __ oaid:" + oaid); // System.out.println("mcg __ oaid:" + oaid);
//
YwSDK.Companion.init(this, appSecret, appid, userID, "1", oaid); // YwSDK.Companion.init(this, appSecret, appid, userID, "1", oaid);
} // }
/** /**
* 百度视频 * 百度视频
......
...@@ -12,7 +12,7 @@ public class YlhAdManager { ...@@ -12,7 +12,7 @@ public class YlhAdManager {
public static final String YLH_AD_VEDIO_APPID= "1110341375"; 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 = "5071107856089058";//首页大转盘
public static final String YLH_AD_VEDIO_VERSUS_PAN_POSTID = "6050192584710355";//挑战大转盘 public static final String YLH_AD_VEDIO_VERSUS_PAN_POSTID = "2011506866980034";//挑战大转盘
public static final String YLH_AD_VEDIO_VERSUS_ERASE_POSTID = "7030490650012830";//挑战刮刮乐 public static final String YLH_AD_VEDIO_VERSUS_ERASE_POSTID = "6031208866083065";//挑战刮刮乐
} }
package com.mints.highgold.mvp.model;
import java.io.Serializable;
import java.util.List;
public class DrawcashBean implements Serializable {
/**
* msg : 微信账户目前正在维护中,预计3月28日前恢复,请优先用支付宝提现。
* realName : null
* wxDrawFlag : true
* surplus : 0
* openid : null
* lastCashOutType : WEIXIN
* cashOutMoneyArr : [{"money":"1","canUseOnce":true,"needFs":2,"nowFriends":0,"fsGiveCoin":800,"once":true,"canCashOut":false},{"money":"100","canUseOnce":true,"needFs":20,"nowFriends":0,"fsGiveCoin":1800,"once":true,"canCashOut":false},{"money":"150","canUseOnce":null,"needFs":30,"nowFriends":0,"fsGiveCoin":2800,"once":false,"canCashOut":false},{"money":"200","canUseOnce":null,"needFs":40,"nowFriends":0,"fsGiveCoin":3800,"once":false,"canCashOut":false},{"money":"500","canUseOnce":null,"needFs":50,"nowFriends":0,"fsGiveCoin":4800,"once":false,"canCashOut":false}]
* coinRate : 10000
* alipayAccount : null
* coin : 5562
*/
private String msg;
private String realName;
private boolean wxDrawFlag;
private int surplus;
private String openid;
private String lastCashOutType;
private int coinRate;
private String alipayAccount;
private int coin;
private List<CashOutMoneyArrBean> cashOutMoneyArr;
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public String getRealName() {
return realName;
}
public void setRealName(String realName) {
this.realName = realName;
}
public boolean isWxDrawFlag() {
return wxDrawFlag;
}
public void setWxDrawFlag(boolean wxDrawFlag) {
this.wxDrawFlag = wxDrawFlag;
}
public int getSurplus() {
return surplus;
}
public void setSurplus(int surplus) {
this.surplus = surplus;
}
public String getOpenid() {
return openid;
}
public void setOpenid(String openid) {
this.openid = openid;
}
public String getLastCashOutType() {
return lastCashOutType;
}
public void setLastCashOutType(String lastCashOutType) {
this.lastCashOutType = lastCashOutType;
}
public int getCoinRate() {
return coinRate;
}
public void setCoinRate(int coinRate) {
this.coinRate = coinRate;
}
public String getAlipayAccount() {
return alipayAccount;
}
public void setAlipayAccount(String alipayAccount) {
this.alipayAccount = alipayAccount;
}
public int getCoin() {
return coin;
}
public void setCoin(int coin) {
this.coin = coin;
}
public List<CashOutMoneyArrBean> getCashOutMoneyArr() {
return cashOutMoneyArr;
}
public void setCashOutMoneyArr(List<CashOutMoneyArrBean> cashOutMoneyArr) {
this.cashOutMoneyArr = cashOutMoneyArr;
}
public class CashOutMoneyArrBean implements Serializable{
/**
* money : 1
* canUseOnce : true
* needFs : 2
* nowFriends : 0
* fsGiveCoin : 800
* once : true
* canCashOut : false
*/
private double money;
private boolean canUseOnce;//还有没有新人专享的机会
private int needFs;//需要多少朋友才能提现
private int nowFriends;//现在有多少了
private int fsGiveCoin;//朋友可以返给我多少
private boolean once;//是否是新人专享
private boolean canCashOut;//最终能不能提现
public double getMoney() {
return money;
}
public void setMoney(double money) {
this.money = money;
}
public boolean isCanUseOnce() {
return canUseOnce;
}
public void setCanUseOnce(boolean canUseOnce) {
this.canUseOnce = canUseOnce;
}
public int getNeedFs() {
return needFs;
}
public void setNeedFs(int needFs) {
this.needFs = needFs;
}
public int getNowFriends() {
return nowFriends;
}
public void setNowFriends(int nowFriends) {
this.nowFriends = nowFriends;
}
public int getFsGiveCoin() {
return fsGiveCoin;
}
public void setFsGiveCoin(int fsGiveCoin) {
this.fsGiveCoin = fsGiveCoin;
}
public boolean isOnce() {
return once;
}
public void setOnce(boolean once) {
this.once = once;
}
public boolean isCanCashOut() {
return canCashOut;
}
public void setCanCashOut(boolean canCashOut) {
this.canCashOut = canCashOut;
}
}
}
...@@ -10,11 +10,13 @@ import com.mints.highgold.manager.AppHttpManager; ...@@ -10,11 +10,13 @@ import com.mints.highgold.manager.AppHttpManager;
import com.mints.highgold.manager.ShumeiManager; import com.mints.highgold.manager.ShumeiManager;
import com.mints.highgold.manager.UserManager; import com.mints.highgold.manager.UserManager;
import com.mints.highgold.mvp.model.BaseResponse; import com.mints.highgold.mvp.model.BaseResponse;
import com.mints.highgold.mvp.model.DrawcashBean;
import com.mints.highgold.mvp.model.LocationBean; import com.mints.highgold.mvp.model.LocationBean;
import com.mints.highgold.mvp.model.UserBean; import com.mints.highgold.mvp.model.UserBean;
import com.mints.highgold.mvp.model.UserTaskMsgBean; import com.mints.highgold.mvp.model.UserTaskMsgBean;
import com.mints.highgold.mvp.views.DrawcashView; import com.mints.highgold.mvp.views.DrawcashView;
import com.mints.highgold.utils.DeviceUuidFactory; import com.mints.highgold.utils.DeviceUuidFactory;
import com.mints.highgold.utils.DevicesUtil;
import com.mints.highgold.utils.SPUtil; import com.mints.highgold.utils.SPUtil;
import com.mints.library.net.neterror.BaseSubscriber; import com.mints.library.net.neterror.BaseSubscriber;
import com.mints.library.net.neterror.Throwable; import com.mints.library.net.neterror.Throwable;
...@@ -32,7 +34,7 @@ public class DrawcashPresenter extends BasePresenter<DrawcashView> { ...@@ -32,7 +34,7 @@ public class DrawcashPresenter extends BasePresenter<DrawcashView> {
AppHttpManager.getInstance(loanApplication) AppHttpManager.getInstance(loanApplication)
.call(loanService.getDrawcashUserTaskMsg(), .call(loanService.getDrawcashUserTaskMsg(),
new BaseSubscriber<BaseResponse<UserTaskMsgBean>>() { new BaseSubscriber<BaseResponse<DrawcashBean>>() {
@Override @Override
public void onCompleted() { public void onCompleted() {
if (isLinkView()) return; if (isLinkView()) return;
...@@ -49,7 +51,7 @@ public class DrawcashPresenter extends BasePresenter<DrawcashView> { ...@@ -49,7 +51,7 @@ public class DrawcashPresenter extends BasePresenter<DrawcashView> {
} }
@Override @Override
public void onNext(BaseResponse<UserTaskMsgBean> baseResponse) { public void onNext(BaseResponse<DrawcashBean> baseResponse) {
if (isLinkView()) return; if (isLinkView()) return;
int code = baseResponse.getStatus(); int code = baseResponse.getStatus();
...@@ -227,6 +229,9 @@ public class DrawcashPresenter extends BasePresenter<DrawcashView> { ...@@ -227,6 +229,9 @@ public class DrawcashPresenter extends BasePresenter<DrawcashView> {
vo.put("appversion", deviceInfo.getVersionName()); vo.put("appversion", deviceInfo.getVersionName());
vo.put("appPkgList", deviceInfo.getPkgInfo(context)); vo.put("appPkgList", deviceInfo.getPkgInfo(context));
vo.put("oaid", DevicesUtil.getOaid());
vo.put("tempuuid", DevicesUtil.getPesudoUniqueID());
AppHttpManager.getInstance(loanApplication) AppHttpManager.getInstance(loanApplication)
.call(loanService.saveTerminalInfo(vo), .call(loanService.saveTerminalInfo(vo),
new BaseSubscriber<BaseResponse<UserBean>>() { new BaseSubscriber<BaseResponse<UserBean>>() {
......
...@@ -11,11 +11,14 @@ import com.mints.highgold.manager.JpushManager; ...@@ -11,11 +11,14 @@ import com.mints.highgold.manager.JpushManager;
import com.mints.highgold.manager.ShumeiManager; import com.mints.highgold.manager.ShumeiManager;
import com.mints.highgold.manager.UserManager; import com.mints.highgold.manager.UserManager;
import com.mints.highgold.mvp.model.BaseResponse; import com.mints.highgold.mvp.model.BaseResponse;
import com.mints.highgold.mvp.model.DrawcashBean;
import com.mints.highgold.mvp.model.LocationBean; import com.mints.highgold.mvp.model.LocationBean;
import com.mints.highgold.mvp.model.MyInfo;
import com.mints.highgold.mvp.model.UserBean; import com.mints.highgold.mvp.model.UserBean;
import com.mints.highgold.mvp.model.UserTaskMsgBean; import com.mints.highgold.mvp.model.UserTaskMsgBean;
import com.mints.highgold.mvp.views.GameView; import com.mints.highgold.mvp.views.GameView;
import com.mints.highgold.utils.DeviceUuidFactory; import com.mints.highgold.utils.DeviceUuidFactory;
import com.mints.highgold.utils.DevicesUtil;
import com.mints.highgold.utils.SPUtil; import com.mints.highgold.utils.SPUtil;
import com.mints.library.net.neterror.BaseSubscriber; import com.mints.library.net.neterror.BaseSubscriber;
import com.mints.library.net.neterror.Throwable; import com.mints.library.net.neterror.Throwable;
...@@ -30,8 +33,8 @@ public class GamePresenter extends BasePresenter<GameView> { ...@@ -30,8 +33,8 @@ public class GamePresenter extends BasePresenter<GameView> {
*/ */
public void getUserTaskMsg() { public void getUserTaskMsg() {
AppHttpManager.getInstance(loanApplication) AppHttpManager.getInstance(loanApplication)
.call(loanService.getDrawcashUserTaskMsg(), .call(loanService.getMyInfoMsg(),
new BaseSubscriber<BaseResponse<UserTaskMsgBean>>() { new BaseSubscriber<BaseResponse<MyInfo>>() {
@Override @Override
public void onCompleted() { public void onCompleted() {
if (isLinkView()) return; if (isLinkView()) return;
...@@ -49,7 +52,7 @@ public class GamePresenter extends BasePresenter<GameView> { ...@@ -49,7 +52,7 @@ public class GamePresenter extends BasePresenter<GameView> {
} }
@Override @Override
public void onNext(BaseResponse<UserTaskMsgBean> baseResponse) { public void onNext(BaseResponse<MyInfo> baseResponse) {
if (isLinkView()) return; if (isLinkView()) return;
int code = baseResponse.getStatus(); int code = baseResponse.getStatus();
...@@ -214,6 +217,8 @@ public class GamePresenter extends BasePresenter<GameView> { ...@@ -214,6 +217,8 @@ public class GamePresenter extends BasePresenter<GameView> {
vo.put("osversion", deviceInfo.getOSVersion()); vo.put("osversion", deviceInfo.getOSVersion());
vo.put("appversion", deviceInfo.getVersionName()); vo.put("appversion", deviceInfo.getVersionName());
vo.put("appPkgList", deviceInfo.getPkgInfo(context)); vo.put("appPkgList", deviceInfo.getPkgInfo(context));
vo.put("oaid", DevicesUtil.getOaid());
vo.put("tempuuid", DevicesUtil.getPesudoUniqueID());
AppHttpManager.getInstance(loanApplication) AppHttpManager.getInstance(loanApplication)
.call(loanService.saveTerminalInfo(vo), .call(loanService.saveTerminalInfo(vo),
new BaseSubscriber<BaseResponse<Object>>() { new BaseSubscriber<BaseResponse<Object>>() {
......
...@@ -2,7 +2,9 @@ package com.mints.highgold.mvp.presenters; ...@@ -2,7 +2,9 @@ package com.mints.highgold.mvp.presenters;
import com.mints.highgold.manager.AppHttpManager; import com.mints.highgold.manager.AppHttpManager;
import com.mints.highgold.mvp.model.BaseResponse; import com.mints.highgold.mvp.model.BaseResponse;
import com.mints.highgold.mvp.model.DrawcashBean;
import com.mints.highgold.mvp.model.GoldRecordBean; import com.mints.highgold.mvp.model.GoldRecordBean;
import com.mints.highgold.mvp.model.MyInfo;
import com.mints.highgold.mvp.model.UserTaskMsgBean; import com.mints.highgold.mvp.model.UserTaskMsgBean;
import com.mints.highgold.mvp.views.GoldTryView; import com.mints.highgold.mvp.views.GoldTryView;
import com.mints.library.net.neterror.BaseSubscriber; import com.mints.library.net.neterror.BaseSubscriber;
...@@ -17,8 +19,8 @@ public class GoldTryPresenter extends BasePresenter<GoldTryView> { ...@@ -17,8 +19,8 @@ public class GoldTryPresenter extends BasePresenter<GoldTryView> {
view.showLoading("加载中..."); view.showLoading("加载中...");
AppHttpManager.getInstance(loanApplication) AppHttpManager.getInstance(loanApplication)
.call(loanService.getDrawcashUserTaskMsg(), .call(loanService.getMyInfoMsg(),
new BaseSubscriber<BaseResponse<UserTaskMsgBean>>() { new BaseSubscriber<BaseResponse<MyInfo>>() {
@Override @Override
public void onCompleted() { public void onCompleted() {
if (isLinkView()) return; if (isLinkView()) return;
...@@ -35,7 +37,7 @@ public class GoldTryPresenter extends BasePresenter<GoldTryView> { ...@@ -35,7 +37,7 @@ public class GoldTryPresenter extends BasePresenter<GoldTryView> {
} }
@Override @Override
public void onNext(BaseResponse<UserTaskMsgBean> baseResponse) { public void onNext(BaseResponse<MyInfo> baseResponse) {
if (isLinkView()) return; if (isLinkView()) return;
int code = baseResponse.getStatus(); int code = baseResponse.getStatus();
......
...@@ -19,6 +19,7 @@ import com.mints.highgold.mvp.model.UserBean; ...@@ -19,6 +19,7 @@ import com.mints.highgold.mvp.model.UserBean;
import com.mints.highgold.mvp.model.UserTaskMsgBean; import com.mints.highgold.mvp.model.UserTaskMsgBean;
import com.mints.highgold.mvp.views.LoanView; import com.mints.highgold.mvp.views.LoanView;
import com.mints.highgold.utils.DeviceUuidFactory; import com.mints.highgold.utils.DeviceUuidFactory;
import com.mints.highgold.utils.DevicesUtil;
import com.mints.highgold.utils.SPUtil; import com.mints.highgold.utils.SPUtil;
import com.mints.library.net.neterror.BaseSubscriber; import com.mints.library.net.neterror.BaseSubscriber;
import com.mints.library.net.neterror.Throwable; import com.mints.library.net.neterror.Throwable;
...@@ -604,6 +605,8 @@ public class LoanPresenter extends BasePresenter<LoanView> { ...@@ -604,6 +605,8 @@ public class LoanPresenter extends BasePresenter<LoanView> {
vo.put("osversion", deviceInfo.getOSVersion()); vo.put("osversion", deviceInfo.getOSVersion());
vo.put("appversion", deviceInfo.getVersionName()); vo.put("appversion", deviceInfo.getVersionName());
vo.put("appPkgList", deviceInfo.getPkgInfo(context)); vo.put("appPkgList", deviceInfo.getPkgInfo(context));
vo.put("oaid", DevicesUtil.getOaid());
vo.put("tempuuid", DevicesUtil.getPesudoUniqueID());
AppHttpManager.getInstance(loanApplication) AppHttpManager.getInstance(loanApplication)
.call(loanService.saveTerminalInfo(vo), .call(loanService.saveTerminalInfo(vo),
new BaseSubscriber<BaseResponse<Object>>() { new BaseSubscriber<BaseResponse<Object>>() {
...@@ -689,7 +692,8 @@ public class LoanPresenter extends BasePresenter<LoanView> { ...@@ -689,7 +692,8 @@ public class LoanPresenter extends BasePresenter<LoanView> {
vo.put("osversion", deviceInfo.getOSVersion()); vo.put("osversion", deviceInfo.getOSVersion());
vo.put("appversion", deviceInfo.getVersionName()); vo.put("appversion", deviceInfo.getVersionName());
vo.put("appPkgList", deviceInfo.getPkgInfo(context)); vo.put("appPkgList", deviceInfo.getPkgInfo(context));
vo.put("oaid", DevicesUtil.getOaid());
vo.put("tempuuid", DevicesUtil.getPesudoUniqueID());
AppHttpManager.getInstance(loanApplication) AppHttpManager.getInstance(loanApplication)
.call(loanService.saveTerminalInfo(vo), .call(loanService.saveTerminalInfo(vo),
new BaseSubscriber<BaseResponse<UserBean>>() { new BaseSubscriber<BaseResponse<UserBean>>() {
......
...@@ -16,6 +16,7 @@ import com.mints.highgold.mvp.model.LocationBean; ...@@ -16,6 +16,7 @@ import com.mints.highgold.mvp.model.LocationBean;
import com.mints.highgold.mvp.model.UserBean; import com.mints.highgold.mvp.model.UserBean;
import com.mints.highgold.mvp.views.LoginView; import com.mints.highgold.mvp.views.LoginView;
import com.mints.highgold.utils.DeviceUuidFactory; import com.mints.highgold.utils.DeviceUuidFactory;
import com.mints.highgold.utils.DevicesUtil;
import com.mints.highgold.utils.SPUtil; import com.mints.highgold.utils.SPUtil;
import com.mints.library.net.neterror.BaseSubscriber; import com.mints.library.net.neterror.BaseSubscriber;
import com.mints.library.net.neterror.Throwable; import com.mints.library.net.neterror.Throwable;
...@@ -320,7 +321,8 @@ public class LoginPresenter extends BasePresenter<LoginView> { ...@@ -320,7 +321,8 @@ public class LoginPresenter extends BasePresenter<LoginView> {
vo.put("osversion", deviceInfo.getOSVersion()); vo.put("osversion", deviceInfo.getOSVersion());
vo.put("appversion", deviceInfo.getVersionName()); vo.put("appversion", deviceInfo.getVersionName());
vo.put("appPkgList", deviceInfo.getPkgInfo(context)); vo.put("appPkgList", deviceInfo.getPkgInfo(context));
vo.put("oaid", DevicesUtil.getOaid());
vo.put("tempuuid", DevicesUtil.getPesudoUniqueID());
AppHttpManager.getInstance(loanApplication) AppHttpManager.getInstance(loanApplication)
.call(loanService.saveTerminalInfo(vo), .call(loanService.saveTerminalInfo(vo),
new BaseSubscriber<BaseResponse<UserBean>>() { new BaseSubscriber<BaseResponse<UserBean>>() {
......
...@@ -14,6 +14,7 @@ import com.mints.highgold.mvp.model.MyInfo; ...@@ -14,6 +14,7 @@ import com.mints.highgold.mvp.model.MyInfo;
import com.mints.highgold.mvp.model.UserBean; import com.mints.highgold.mvp.model.UserBean;
import com.mints.highgold.mvp.views.MyView; import com.mints.highgold.mvp.views.MyView;
import com.mints.highgold.utils.DeviceUuidFactory; import com.mints.highgold.utils.DeviceUuidFactory;
import com.mints.highgold.utils.DevicesUtil;
import com.mints.library.net.neterror.BaseSubscriber; import com.mints.library.net.neterror.BaseSubscriber;
import com.mints.library.net.neterror.Throwable; import com.mints.library.net.neterror.Throwable;
...@@ -253,6 +254,8 @@ public class MyPresenter extends BasePresenter<MyView> { ...@@ -253,6 +254,8 @@ public class MyPresenter extends BasePresenter<MyView> {
vo.put("osversion", deviceInfo.getOSVersion()); vo.put("osversion", deviceInfo.getOSVersion());
vo.put("appversion", deviceInfo.getVersionName()); vo.put("appversion", deviceInfo.getVersionName());
vo.put("appPkgList", deviceInfo.getPkgInfo(context)); vo.put("appPkgList", deviceInfo.getPkgInfo(context));
vo.put("oaid", DevicesUtil.getOaid());
vo.put("tempuuid", DevicesUtil.getPesudoUniqueID());
AppHttpManager.getInstance(loanApplication) AppHttpManager.getInstance(loanApplication)
.call(loanService.saveTerminalInfo(vo), .call(loanService.saveTerminalInfo(vo),
new BaseSubscriber<BaseResponse<Object>>() { new BaseSubscriber<BaseResponse<Object>>() {
......
...@@ -15,6 +15,7 @@ import com.mints.highgold.mvp.model.LocationBean; ...@@ -15,6 +15,7 @@ import com.mints.highgold.mvp.model.LocationBean;
import com.mints.highgold.mvp.model.UserBean; import com.mints.highgold.mvp.model.UserBean;
import com.mints.highgold.mvp.views.WxLoginView; import com.mints.highgold.mvp.views.WxLoginView;
import com.mints.highgold.utils.DeviceUuidFactory; import com.mints.highgold.utils.DeviceUuidFactory;
import com.mints.highgold.utils.DevicesUtil;
import com.mints.highgold.utils.SPUtil; import com.mints.highgold.utils.SPUtil;
import com.mints.library.net.neterror.BaseSubscriber; import com.mints.library.net.neterror.BaseSubscriber;
import com.mints.library.net.neterror.Throwable; import com.mints.library.net.neterror.Throwable;
...@@ -154,7 +155,8 @@ public class WxLoginPresenter extends BasePresenter<WxLoginView> { ...@@ -154,7 +155,8 @@ public class WxLoginPresenter extends BasePresenter<WxLoginView> {
vo.put("osversion", deviceInfo.getOSVersion()); vo.put("osversion", deviceInfo.getOSVersion());
vo.put("appversion", deviceInfo.getVersionName()); vo.put("appversion", deviceInfo.getVersionName());
vo.put("appPkgList", deviceInfo.getPkgInfo(context)); vo.put("appPkgList", deviceInfo.getPkgInfo(context));
vo.put("oaid", DevicesUtil.getOaid());
vo.put("tempuuid", DevicesUtil.getPesudoUniqueID());
AppHttpManager.getInstance(loanApplication) AppHttpManager.getInstance(loanApplication)
.call(loanService.saveTerminalInfo(vo), .call(loanService.saveTerminalInfo(vo),
new BaseSubscriber<BaseResponse<UserBean>>() { new BaseSubscriber<BaseResponse<UserBean>>() {
......
package com.mints.highgold.mvp.views; package com.mints.highgold.mvp.views;
import com.mints.highgold.mvp.model.DrawcashBean;
import com.mints.highgold.mvp.model.UserTaskMsgBean; import com.mints.highgold.mvp.model.UserTaskMsgBean;
public interface DrawcashView extends BaseView { public interface DrawcashView extends BaseView {
/** /**
* 获取用户配置信息成功 * 获取用户配置信息成功
*/ */
void getUserTaskMsgSuc(UserTaskMsgBean data); void getUserTaskMsgSuc(DrawcashBean data);
/** /**
* 提现成功 * 提现成功
......
package com.mints.highgold.mvp.views; package com.mints.highgold.mvp.views;
import com.mints.highgold.mvp.model.DrawcashBean;
import com.mints.highgold.mvp.model.MyInfo;
import com.mints.highgold.mvp.model.UserTaskMsgBean; import com.mints.highgold.mvp.model.UserTaskMsgBean;
public interface GameView extends BaseView { public interface GameView extends BaseView {
/** /**
* 获取用户配置信息成功 * 获取用户配置信息成功
*/ */
void getUserTaskMsgSuc(UserTaskMsgBean data); void getUserTaskMsgSuc(MyInfo data);
/** /**
* 获取用户配置信息失败 * 获取用户配置信息失败
*/ */
......
package com.mints.highgold.mvp.views; package com.mints.highgold.mvp.views;
import com.mints.highgold.mvp.model.DrawcashBean;
import com.mints.highgold.mvp.model.GoldRecordBean; import com.mints.highgold.mvp.model.GoldRecordBean;
import com.mints.highgold.mvp.model.MyInfo;
import com.mints.highgold.mvp.model.UserTaskMsgBean; import com.mints.highgold.mvp.model.UserTaskMsgBean;
public interface GoldTryView extends BaseView { public interface GoldTryView extends BaseView {
/** /**
* 获取用户配置信息成功 * 获取用户配置信息成功
*/ */
void getUserTaskMsgSuc(UserTaskMsgBean data); void getUserTaskMsgSuc(MyInfo data);
/** /**
* 获取收入记录成功 * 获取收入记录成功
......
...@@ -13,6 +13,7 @@ import com.mints.highgold.manager.UserManager; ...@@ -13,6 +13,7 @@ import com.mints.highgold.manager.UserManager;
import com.mints.highgold.mvp.model.BaseResponse; import com.mints.highgold.mvp.model.BaseResponse;
import com.mints.highgold.mvp.model.UserBean; import com.mints.highgold.mvp.model.UserBean;
import com.mints.highgold.utils.DeviceUuidFactory; import com.mints.highgold.utils.DeviceUuidFactory;
import com.mints.highgold.utils.DevicesUtil;
import com.mints.highgold.utils.ForegroundOrBackground; import com.mints.highgold.utils.ForegroundOrBackground;
import com.mints.library.net.neterror.BaseSubscriber; import com.mints.library.net.neterror.BaseSubscriber;
import com.mints.library.net.neterror.Throwable; import com.mints.library.net.neterror.Throwable;
...@@ -247,7 +248,8 @@ public class GsonConverterFactory extends Converter.Factory { ...@@ -247,7 +248,8 @@ public class GsonConverterFactory extends Converter.Factory {
vo.put("osversion", deviceInfo.getOSVersion()); vo.put("osversion", deviceInfo.getOSVersion());
vo.put("appversion", deviceInfo.getVersionName()); vo.put("appversion", deviceInfo.getVersionName());
vo.put("appPkgList", deviceInfo.getPkgInfo(context)); vo.put("appPkgList", deviceInfo.getPkgInfo(context));
vo.put("oaid", DevicesUtil.getOaid());
vo.put("tempuuid", DevicesUtil.getPesudoUniqueID());
loanApplication.getLoanService().saveTerminalInfo(vo) loanApplication.getLoanService().saveTerminalInfo(vo)
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
.subscribeOn(loanApplication.defaultSubscribeScheduler()) .subscribeOn(loanApplication.defaultSubscribeScheduler())
......
...@@ -13,6 +13,7 @@ import com.mints.highgold.manager.UserManager; ...@@ -13,6 +13,7 @@ import com.mints.highgold.manager.UserManager;
import com.mints.highgold.mvp.model.BaseResponse; import com.mints.highgold.mvp.model.BaseResponse;
import com.mints.highgold.mvp.model.UserBean; import com.mints.highgold.mvp.model.UserBean;
import com.mints.highgold.utils.DeviceUuidFactory; import com.mints.highgold.utils.DeviceUuidFactory;
import com.mints.highgold.utils.DevicesUtil;
import com.mints.highgold.utils.ForegroundOrBackground; import com.mints.highgold.utils.ForegroundOrBackground;
import com.mints.library.net.neterror.BaseSubscriber; import com.mints.library.net.neterror.BaseSubscriber;
import com.mints.library.net.neterror.Throwable; import com.mints.library.net.neterror.Throwable;
...@@ -246,7 +247,8 @@ public class HytechGsonConverterFactory extends Converter.Factory { ...@@ -246,7 +247,8 @@ public class HytechGsonConverterFactory extends Converter.Factory {
vo.put("osversion", deviceInfo.getOSVersion()); vo.put("osversion", deviceInfo.getOSVersion());
vo.put("appversion", deviceInfo.getVersionName()); vo.put("appversion", deviceInfo.getVersionName());
vo.put("appPkgList", deviceInfo.getPkgInfo(context)); vo.put("appPkgList", deviceInfo.getPkgInfo(context));
vo.put("oaid", DevicesUtil.getOaid());
vo.put("tempuuid", DevicesUtil.getPesudoUniqueID());
loanApplication.getLoanService().saveTerminalInfo(vo) loanApplication.getLoanService().saveTerminalInfo(vo)
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
.subscribeOn(loanApplication.defaultSubscribeScheduler()) .subscribeOn(loanApplication.defaultSubscribeScheduler())
......
...@@ -46,7 +46,7 @@ public interface HytechService { ...@@ -46,7 +46,7 @@ public interface HytechService {
OkHttpClient.Builder builder = new OkHttpClient.Builder(); OkHttpClient.Builder builder = new OkHttpClient.Builder();
builder.retryOnConnectionFailure(true); builder.retryOnConnectionFailure(false);
builder.connectTimeout(20, TimeUnit.SECONDS); builder.connectTimeout(20, TimeUnit.SECONDS);
builder.readTimeout(20, TimeUnit.SECONDS); builder.readTimeout(20, TimeUnit.SECONDS);
builder.writeTimeout(20, TimeUnit.SECONDS); builder.writeTimeout(20, TimeUnit.SECONDS);
......
...@@ -9,6 +9,7 @@ import com.mints.highgold.common.Constant; ...@@ -9,6 +9,7 @@ import com.mints.highgold.common.Constant;
import com.mints.highgold.mvp.model.AlipayBindBean; import com.mints.highgold.mvp.model.AlipayBindBean;
import com.mints.highgold.mvp.model.BannerBean; import com.mints.highgold.mvp.model.BannerBean;
import com.mints.highgold.mvp.model.BaseResponse; import com.mints.highgold.mvp.model.BaseResponse;
import com.mints.highgold.mvp.model.DrawcashBean;
import com.mints.highgold.mvp.model.DrawcashRecordBean; import com.mints.highgold.mvp.model.DrawcashRecordBean;
import com.mints.highgold.mvp.model.FallBean; import com.mints.highgold.mvp.model.FallBean;
import com.mints.highgold.mvp.model.FriendsRecordBean; import com.mints.highgold.mvp.model.FriendsRecordBean;
...@@ -136,8 +137,8 @@ public interface LoanService { ...@@ -136,8 +137,8 @@ public interface LoanService {
* *
* @return * @return
*/ */
@POST("api/v115/getUserCoinMsg") @POST("api/high/getUserCoinMsg")
Observable<BaseResponse<UserTaskMsgBean>> getDrawcashUserTaskMsg(); Observable<BaseResponse<DrawcashBean>> getDrawcashUserTaskMsg();
/** /**
* 我的界面信息 * 我的界面信息
...@@ -475,7 +476,7 @@ public interface LoanService { ...@@ -475,7 +476,7 @@ public interface LoanService {
OkHttpClient.Builder builder = new OkHttpClient.Builder(); OkHttpClient.Builder builder = new OkHttpClient.Builder();
builder.retryOnConnectionFailure(true); builder.retryOnConnectionFailure(false);
builder.connectTimeout(20, TimeUnit.SECONDS); builder.connectTimeout(20, TimeUnit.SECONDS);
builder.readTimeout(20, TimeUnit.SECONDS); builder.readTimeout(20, TimeUnit.SECONDS);
builder.writeTimeout(20, TimeUnit.SECONDS); builder.writeTimeout(20, TimeUnit.SECONDS);
...@@ -507,32 +508,32 @@ public interface LoanService { ...@@ -507,32 +508,32 @@ public interface LoanService {
builder.interceptors().add(okHttpInterceptor); builder.interceptors().add(okHttpInterceptor);
Retrofit retrofit; Retrofit retrofit;
// if (BuildConfig.DEBUG) { if (BuildConfig.DEBUG) {
// SPUtil spUtil = SPUtil.getInstance(context); SPUtil spUtil = SPUtil.getInstance(context);
// if (TextUtils.isEmpty(spUtil.getString(Constant.LOCAL_IP))) { if (TextUtils.isEmpty(spUtil.getString(Constant.LOCAL_IP))) {
// spUtil.putString(Constant.LOCAL_IP, "http://39.106.5.102:9082/gs-api/"); spUtil.putString(Constant.LOCAL_IP, "http://39.106.5.102:9082/gs-api/");
// } }
// retrofit = new Retrofit.Builder() retrofit = new Retrofit.Builder()
// .client(builder.build()) .client(builder.build())
// .baseUrl(spUtil.getString(Constant.LOCAL_IP)) .baseUrl(spUtil.getString(Constant.LOCAL_IP))
// .addConverterFactory(GsonConverterFactory.create()) .addConverterFactory(GsonConverterFactory.create())
// .addCallAdapterFactory(RxJavaCallAdapterFactory.create()) .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
// .build(); .build();
// } else { } else {
// retrofit = new Retrofit.Builder()
// .client(builder.build())
// .baseUrl(BuildConfig.MainIp)
// .addConverterFactory(GsonConverterFactory.create())
// .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
// .build();
// }
retrofit = new Retrofit.Builder() retrofit = new Retrofit.Builder()
.client(builder.build()) .client(builder.build())
.baseUrl(BuildConfig.MainIp) .baseUrl(BuildConfig.MainIp)
.addConverterFactory(GsonConverterFactory.create()) .addConverterFactory(GsonConverterFactory.create())
.addCallAdapterFactory(RxJavaCallAdapterFactory.create()) .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
.build(); .build();
}
// retrofit = new Retrofit.Builder()
// .client(builder.build())
// .baseUrl(BuildConfig.MainIp)
// .addConverterFactory(GsonConverterFactory.create())
// .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
// .build();
return retrofit.create(LoanService.class); return retrofit.create(LoanService.class);
......
...@@ -6,6 +6,7 @@ import android.view.View; ...@@ -6,6 +6,7 @@ import android.view.View;
import android.widget.Button; import android.widget.Button;
import android.widget.FrameLayout; import android.widget.FrameLayout;
import android.widget.ImageView; import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout; import android.widget.RelativeLayout;
import android.widget.TextView; import android.widget.TextView;
...@@ -16,6 +17,7 @@ import com.mints.highgold.login.OnLoginListener; ...@@ -16,6 +17,7 @@ import com.mints.highgold.login.OnLoginListener;
import com.mints.highgold.manager.TTAdManagerHolder; import com.mints.highgold.manager.TTAdManagerHolder;
import com.mints.highgold.manager.TTBannerManager; import com.mints.highgold.manager.TTBannerManager;
import com.mints.highgold.manager.UserManager; import com.mints.highgold.manager.UserManager;
import com.mints.highgold.mvp.model.DrawcashBean;
import com.mints.highgold.mvp.model.UserTaskMsgBean; import com.mints.highgold.mvp.model.UserTaskMsgBean;
import com.mints.highgold.mvp.model.WXInfo; import com.mints.highgold.mvp.model.WXInfo;
import com.mints.highgold.mvp.presenters.DrawcashPresenter; import com.mints.highgold.mvp.presenters.DrawcashPresenter;
...@@ -23,11 +25,14 @@ import com.mints.highgold.mvp.views.DrawcashView; ...@@ -23,11 +25,14 @@ import com.mints.highgold.mvp.views.DrawcashView;
import com.mints.highgold.ui.activitys.base.BaseActivity; import com.mints.highgold.ui.activitys.base.BaseActivity;
import com.mints.highgold.utils.SpanUtils; import com.mints.highgold.utils.SpanUtils;
import com.mints.library.utils.json.JsonUtil; import com.mints.library.utils.json.JsonUtil;
import com.mints.library.utils.nodoubleclick.AntiShake;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.HashMap; import java.util.HashMap;
import java.util.List;
import butterknife.Bind; import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick; import butterknife.OnClick;
import cn.sharesdk.framework.Platform; import cn.sharesdk.framework.Platform;
import cn.sharesdk.framework.ShareSDK; import cn.sharesdk.framework.ShareSDK;
...@@ -79,15 +84,29 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo ...@@ -79,15 +84,29 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
TextView tvDrawcashPaytype; TextView tvDrawcashPaytype;
@Bind(R.id.btn_drawcash_hint) @Bind(R.id.btn_drawcash_hint)
TextView btnDrawcashHint; TextView btnDrawcashHint;
@Bind(R.id.tv_drawcash_wxnotify) @Bind(R.id.tv_drawcash_hint_top)
TextView tvDrawcashWxnotify; TextView tvDrawcashHintTop;
@Bind(R.id.tv_drawcash_friends_top)
TextView tvDrawcashFriendsTop;
@Bind(R.id.tv_drawcash_friendsnext_top)
TextView tvDrawcashFriendsnextTop;
@Bind(R.id.ll_drawcash_top)
LinearLayout llDrawcashTop;
@Bind(R.id.tv_drawcash_hint_bottom)
TextView tvDrawcashHintBottom;
@Bind(R.id.tv_drawcash_friends_bottom)
TextView tvDrawcashFriendsBottom;
@Bind(R.id.tv_drawcash_friendsnext_bottom)
TextView tvDrawcashFriendsnextBottom;
@Bind(R.id.ll_drawcash_bottom)
LinearLayout llDrawcashBottom;
private DrawcashPresenter drawcashPresenter; private DrawcashPresenter drawcashPresenter;
private double curCash = 100;//当前要提现的钱 private double curCash = 100;//当前要提现的钱
private TTBannerManager ttUtil; private TTBannerManager ttUtil;
UserTaskMsgBean userConfig = null; DrawcashBean userConfig = null;
private boolean cashOut1yuan = false;//true-提现过1元 private boolean cashOut1yuan = false;//true-提现过1元
private boolean cashOut2yuan = false;//true-提现过2元 private boolean cashOut2yuan = false;//true-提现过2元
...@@ -110,8 +129,6 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo ...@@ -110,8 +129,6 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
drawcashPresenter.attachView(this); drawcashPresenter.attachView(this);
tvActivityTitle.setText("提现"); tvActivityTitle.setText("提现");
// tvActivityRight.setVisibility(View.VISIBLE);
// tvActivityRight.setText("提现记录");
userManager = UserManager.getInstance(); userManager = UserManager.getInstance();
...@@ -141,8 +158,9 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo ...@@ -141,8 +158,9 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
protected void onResume() { protected void onResume() {
super.onResume(); super.onResume();
// System.out.println("mcg __drawcashPresenter.getUserTaskMsg("); if (llDrawcashBottom != null) {
if (AntiShake.check(llDrawcashBottom.getId())) return;
}
drawcashPresenter.getUserTaskMsg(); drawcashPresenter.getUserTaskMsg();
} }
...@@ -165,21 +183,27 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo ...@@ -165,21 +183,27 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
} }
@Override @Override
public void getUserTaskMsgSuc(UserTaskMsgBean data) { public void getUserTaskMsgSuc(DrawcashBean data) {
if (data == null) { if (data == null) {
userConfig = null; userConfig = null;
return; return;
} }
userConfig = data; userConfig = data;
cashOut1yuan = data.isCashOut1yuan(); List<DrawcashBean.CashOutMoneyArrBean> cashOutMoneyArr = userConfig.getCashOutMoneyArr();
cashOut2yuan = data.isCashOut2yuan(); if (cashOutMoneyArr != null && cashOutMoneyArr.size() > 1) {
DrawcashBean.CashOutMoneyArrBean moneyArrBean = cashOutMoneyArr.get(0);
DrawcashBean.CashOutMoneyArrBean moneyArrBean1 = cashOutMoneyArr.get(1);
cashOut1yuan = moneyArrBean.isCanCashOut();
cashOut2yuan = moneyArrBean1.isCanCashOut();
drawcash = moneyArrBean.getMoney();
}
drawcash = data.getDrawcash();
initBtnStyle(); initBtnStyle();
if (!cashOut1yuan || !cashOut2yuan ) { if (!cashOut1yuan || !cashOut2yuan) {
if (cashOut2yuan) { if (cashOut2yuan) {
btnDrawcashTwo.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_new_dont)); btnDrawcashTwo.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_new_dont));
btnDrawcashTwo.setEnabled(false); btnDrawcashTwo.setEnabled(false);
...@@ -207,7 +231,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo ...@@ -207,7 +231,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
// 微信为默认支付方式 // 微信为默认支付方式
if (TextUtils.equals(paymentType, "weixin")) { if (TextUtils.equals(paymentType, "weixin")) {
if (TextUtils.isEmpty(data.getWxOpenid())) { if (TextUtils.isEmpty(data.getOpenid())) {
tvDrawcashSet.setText("去授权"); tvDrawcashSet.setText("去授权");
} else { } else {
tvDrawcashSet.setText("已授权"); tvDrawcashSet.setText("已授权");
...@@ -228,13 +252,6 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo ...@@ -228,13 +252,6 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
cashStr = allcoinBig.divide(rateBig).setScale(2, BigDecimal.ROUND_DOWN).toString(); cashStr = allcoinBig.divide(rateBig).setScale(2, BigDecimal.ROUND_DOWN).toString();
tvDrawcashAboutcash.setText("约" + cashStr + "元"); tvDrawcashAboutcash.setText("约" + cashStr + "元");
if (data.isWxDrawFlag()) {
tvDrawcashWxnotify.setVisibility(View.GONE);
} else {
tvDrawcashWxnotify.setVisibility(View.VISIBLE);
tvDrawcashWxnotify.setText(data.getMsg());
}
tvDrawcashHint.setText("* 如您或好友通过刷机等违规操作获取非法收益,平台将视情况扣除违规所得或冻结账号。" + tvDrawcashHint.setText("* 如您或好友通过刷机等违规操作获取非法收益,平台将视情况扣除违规所得或冻结账号。" +
"\n* 最终解释权归本公司所有。"); "\n* 最终解释权归本公司所有。");
} }
...@@ -263,10 +280,10 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo ...@@ -263,10 +280,10 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
} }
@OnClick({R.id.tv_activity_back, R.id.btn_drawcash_one, R.id.btn_drawcash_two, @OnClick({R.id.tv_activity_back, R.id.btn_drawcash_one, R.id.btn_drawcash_two,
R.id.btn_drawcash_five,R.id.iv_drawcash_weixin, R.id.iv_drawcash_alipay, R.id.btn_drawcash_five, R.id.iv_drawcash_weixin, R.id.iv_drawcash_alipay,
R.id.btn_drawcash_three, R.id.btn_drawcash_four, R.id.tv_drawcash_set, R.id.btn_drawcash_three, R.id.btn_drawcash_four, R.id.tv_drawcash_set,
R.id.btn_drawcash_next,R.id.tv_drawcash_record, R.id.rl_drawcash_alipay, R.id.btn_drawcash_next, R.id.tv_drawcash_record, R.id.rl_drawcash_alipay,
R.id.tv_drawcash_explain}) R.id.tv_drawcash_explain, R.id.tv_drawcash_friendsnext_top, R.id.tv_drawcash_friendsnext_bottom})
public void onClick(View view) { public void onClick(View view) {
switch (view.getId()) { switch (view.getId()) {
case R.id.tv_activity_back: case R.id.tv_activity_back:
...@@ -292,7 +309,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo ...@@ -292,7 +309,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
tvDrawcashPaytype.setCompoundDrawablesWithIntrinsicBounds(getResources().getDrawable(R.mipmap.ic_weixin), null, null, null); tvDrawcashPaytype.setCompoundDrawablesWithIntrinsicBounds(getResources().getDrawable(R.mipmap.ic_weixin), null, null, null);
tvDrawcashPaytype.setText("微信"); tvDrawcashPaytype.setText("微信");
if (userConfig != null) { if (userConfig != null) {
if (TextUtils.isEmpty(userConfig.getWxOpenid())) { if (TextUtils.isEmpty(userConfig.getOpenid())) {
tvDrawcashSet.setText("去授权"); tvDrawcashSet.setText("去授权");
} else { } else {
tvDrawcashSet.setText("已授权"); tvDrawcashSet.setText("已授权");
...@@ -385,7 +402,10 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo ...@@ -385,7 +402,10 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
curCash = 200; curCash = 200;
clickFour(curCash); clickFour(curCash);
break; break;
case R.id.tv_drawcash_friendsnext_top:
case R.id.tv_drawcash_friendsnext_bottom:
readyGo(FriendsNewActivity.class);
break;
case R.id.btn_drawcash_five: case R.id.btn_drawcash_five:
if (userConfig == null) { if (userConfig == null) {
showToast("网络异常,请检测网络"); showToast("网络异常,请检测网络");
...@@ -427,7 +447,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo ...@@ -427,7 +447,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
return; return;
} }
if (TextUtils.isEmpty(userConfig.getWxOpenid())) { if (TextUtils.isEmpty(userConfig.getOpenid())) {
Platform wechat = ShareSDK.getPlatform(Wechat.NAME); Platform wechat = ShareSDK.getPlatform(Wechat.NAME);
if (!wechat.isClientValid()) { if (!wechat.isClientValid()) {
showToast("请先安装微信"); showToast("请先安装微信");
...@@ -455,10 +475,64 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo ...@@ -455,10 +475,64 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
} }
} }
/**
* 设置提现说明
*/
private void setDrawLayout(double cash) {
if (userConfig != null) {
int coin = userConfig.getCoin();
List<DrawcashBean.CashOutMoneyArrBean> outMoneyArr = userConfig.getCashOutMoneyArr();
if (cash == 100 && coin >= 1000000) {
if (outMoneyArr != null && outMoneyArr.size() >= 1) {
DrawcashBean.CashOutMoneyArrBean moneyArrBean = outMoneyArr.get(1);
llDrawcashTop.setVisibility(View.VISIBLE);
llDrawcashBottom.setVisibility(View.GONE);
tvDrawcashHintTop.setText("每新邀请" + moneyArrBean.getNeedFs() + "位有效好友即可提现,提现成功立返" + moneyArrBean.getFsGiveCoin() + "金币");
tvDrawcashFriendsTop.setText("可用有效好友数:" + moneyArrBean.getNowFriends());
}
} else if (cash == 150 && coin >= 1500000) {
if (outMoneyArr != null && outMoneyArr.size() >= 2) {
DrawcashBean.CashOutMoneyArrBean moneyArrBean = outMoneyArr.get(2);
llDrawcashTop.setVisibility(View.VISIBLE);
llDrawcashBottom.setVisibility(View.GONE);
tvDrawcashHintTop.setText("每新邀请" + moneyArrBean.getNeedFs() + "位有效好友即可提现,提现成功立返" + moneyArrBean.getFsGiveCoin() + "金币");
tvDrawcashFriendsTop.setText("可用有效好友数:" + moneyArrBean.getNowFriends());
}
} else if (cash == 200 && coin >= 2000000) {
if (outMoneyArr != null && outMoneyArr.size() >= 3) {
DrawcashBean.CashOutMoneyArrBean moneyArrBean = outMoneyArr.get(3);
llDrawcashTop.setVisibility(View.GONE);
llDrawcashBottom.setVisibility(View.VISIBLE);
tvDrawcashHintBottom.setText("每新邀请" + moneyArrBean.getNeedFs() + "位有效好友即可提现,提现成功立返" + moneyArrBean.getFsGiveCoin() + "金币");
tvDrawcashFriendsBottom.setText("可用有效好友数:" + moneyArrBean.getNowFriends());
}
} else if (cash == 500 && coin >= 5000000) {
if (outMoneyArr != null && outMoneyArr.size() >= 4) {
DrawcashBean.CashOutMoneyArrBean moneyArrBean = outMoneyArr.get(4);
llDrawcashTop.setVisibility(View.GONE);
llDrawcashBottom.setVisibility(View.VISIBLE);
tvDrawcashHintBottom.setText("每新邀请" + moneyArrBean.getNeedFs() + "位有效好友即可提现,提现成功立返" + moneyArrBean.getFsGiveCoin() + "金币");
tvDrawcashFriendsBottom.setText("可用有效好友数:" + moneyArrBean.getNowFriends());
}
} else {
llDrawcashTop.setVisibility(View.GONE);
llDrawcashBottom.setVisibility(View.GONE);
}
} else {
llDrawcashTop.setVisibility(View.GONE);
llDrawcashBottom.setVisibility(View.GONE);
}
}
private void clickOne(double cash) { private void clickOne(double cash) {
btnDrawcashOne.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_new_enable)); btnDrawcashOne.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_new_enable));
// btnDrawcashTwo.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_new_none));
if (cashOut2yuan) { if (cashOut2yuan) {
// 提现过一元,显示灰 // 提现过一元,显示灰
btnDrawcashTwo.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_new_dont)); btnDrawcashTwo.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_new_dont));
...@@ -469,6 +543,8 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo ...@@ -469,6 +543,8 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
btnDrawcashFour.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_none)); btnDrawcashFour.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_none));
btnDrawcashFive.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_none)); btnDrawcashFive.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_none));
btnDrawcashHint.setText("所需金币:" + (drawcash * 10000)); btnDrawcashHint.setText("所需金币:" + (drawcash * 10000));
setDrawLayout(cash);
} }
private void clickTwo(double cash) { private void clickTwo(double cash) {
...@@ -484,6 +560,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo ...@@ -484,6 +560,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
btnDrawcashFive.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_none)); btnDrawcashFive.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_none));
btnDrawcashHint.setText("所需金币:1000000"); btnDrawcashHint.setText("所需金币:1000000");
setDrawLayout(cash);
} }
private void clickThree(double cash) { private void clickThree(double cash) {
...@@ -503,7 +580,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo ...@@ -503,7 +580,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
btnDrawcashFour.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_none)); btnDrawcashFour.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_none));
btnDrawcashFive.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_none)); btnDrawcashFive.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_none));
btnDrawcashHint.setText("所需金币:1500000"); btnDrawcashHint.setText("所需金币:1500000");
setDrawLayout(cash);
} }
private void clickFour(double cash) { private void clickFour(double cash) {
...@@ -523,7 +600,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo ...@@ -523,7 +600,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
btnDrawcashFour.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_enable)); btnDrawcashFour.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_enable));
btnDrawcashFive.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_none)); btnDrawcashFive.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_none));
btnDrawcashHint.setText("所需金币:2000000"); btnDrawcashHint.setText("所需金币:2000000");
setDrawLayout(cash);
} }
...@@ -544,7 +621,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo ...@@ -544,7 +621,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
btnDrawcashFour.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_none)); btnDrawcashFour.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_none));
btnDrawcashFive.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_enable)); btnDrawcashFive.setBackground(getResources().getDrawable(R.mipmap.ic_drawcash_enable));
btnDrawcashHint.setText("所需金币:5000000"); btnDrawcashHint.setText("所需金币:5000000");
setDrawLayout(cash);
} }
private void initBtnStyle() { private void initBtnStyle() {
...@@ -584,7 +661,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo ...@@ -584,7 +661,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
new SpanUtils() new SpanUtils()
.append("提现说明:") .append("提现说明:")
.append("\n") .append("\n")
.append("1、所有提现金额【无门槛】直接提现!!新用户提现秒到账!") .append("1、新用户提现秒到账!")
.append("\n") .append("\n")
.append("2、由于提现需要实名制,非实名用户账号无法支持提现,请务必使用实名认证过的账号提现!") .append("2、由于提现需要实名制,非实名用户账号无法支持提现,请务必使用实名认证过的账号提现!")
.append("\n") .append("\n")
......
...@@ -5,7 +5,9 @@ import android.widget.ListView; ...@@ -5,7 +5,9 @@ import android.widget.ListView;
import android.widget.TextView; import android.widget.TextView;
import com.mints.highgold.R; import com.mints.highgold.R;
import com.mints.highgold.mvp.model.DrawcashBean;
import com.mints.highgold.mvp.model.GoldRecordBean; import com.mints.highgold.mvp.model.GoldRecordBean;
import com.mints.highgold.mvp.model.MyInfo;
import com.mints.highgold.mvp.model.UserTaskMsgBean; import com.mints.highgold.mvp.model.UserTaskMsgBean;
import com.mints.highgold.mvp.presenters.GoldTryPresenter; import com.mints.highgold.mvp.presenters.GoldTryPresenter;
import com.mints.highgold.mvp.views.GoldTryView; import com.mints.highgold.mvp.views.GoldTryView;
...@@ -77,7 +79,7 @@ public class GoldTryActivity extends BaseActivity implements GoldTryView, ...@@ -77,7 +79,7 @@ public class GoldTryActivity extends BaseActivity implements GoldTryView,
} }
@Override @Override
public void getUserTaskMsgSuc(UserTaskMsgBean data) { public void getUserTaskMsgSuc(MyInfo data) {
if (data == null) return; if (data == null) return;
tvGoldtryGold.setText(data.getCoin() + ""); tvGoldtryGold.setText(data.getCoin() + "");
......
...@@ -262,39 +262,8 @@ public class RedboxActivity extends BaseActivity implements RedboxView { ...@@ -262,39 +262,8 @@ public class RedboxActivity extends BaseActivity implements RedboxView {
return; return;
} }
// int type = data.getType();// 0直接领取 1看视频领取
// int canDouble = data.getCanDouble();// 是否可以翻倍
// if (type == 0) {
// // 直接领取
// HashMap<String, Object> vo = new HashMap<>();
// vo.put("numKey", data.getNumKey());
// vo.put("carrierType", Constant.CARRIER_REDENVELOPE);
// redboxPresenter.reportAddCoinMsg(vo);
//
// bundle.putString(Constant.MAIN_CARRIET_TURN, Constant.CARRIER_REDENVELOPE_CASH);
// bundle.putInt(Constant.MAIN_CUR_FLAG, Constant.MAIN_CUR_ONE);
// } else {
// // 看视频领取
//
// if (canDouble == 0) {
// // 不可翻倍
//
// bundle.putString(Constant.MAIN_CARRIET_TURN, Constant.CARRIER_REDENVELOPE);
// bundle.putInt(Constant.MAIN_CUR_FLAG, Constant.MAIN_CUR_TWO);
// } else {
// // 翻倍
//
// bundle.putString(Constant.MAIN_CARRIET_TURN, Constant.CARRIER_REDENVELOPE_DOUBLE);
// }
// }
Bundle bundle = new Bundle(); Bundle bundle = new Bundle();
if (data.getStatus() == 1) {
// 看视频才能领奖励
bundle.putString(Constant.MAIN_CARRIET_TURN, Constant.CARRIER_REDENVELOPE); bundle.putString(Constant.MAIN_CARRIET_TURN, Constant.CARRIER_REDENVELOPE);
} else {
// 金币翻倍
bundle.putString(Constant.MAIN_CARRIET_TURN, Constant.CARRIER_REDENVELOPE_DOUBLE);
}
bundle.putInt(Constant.MAIN_CUR_COIN, data.getCoin()); bundle.putInt(Constant.MAIN_CUR_COIN, data.getCoin());
bundle.putInt(Constant.MAIN_ALL_COIN, data.getSumCoin()); bundle.putInt(Constant.MAIN_ALL_COIN, data.getSumCoin());
bundle.putString(Constant.MAIN_EXTRA_ID, data.getNumKey()); bundle.putString(Constant.MAIN_EXTRA_ID, data.getNumKey());
......
...@@ -20,6 +20,8 @@ import com.mints.highgold.R; ...@@ -20,6 +20,8 @@ import com.mints.highgold.R;
import com.mints.highgold.common.AppConfig; import com.mints.highgold.common.AppConfig;
import com.mints.highgold.common.Constant; import com.mints.highgold.common.Constant;
import com.mints.highgold.manager.UserManager; import com.mints.highgold.manager.UserManager;
import com.mints.highgold.mvp.model.DrawcashBean;
import com.mints.highgold.mvp.model.MyInfo;
import com.mints.highgold.mvp.model.UserTaskMsgBean; import com.mints.highgold.mvp.model.UserTaskMsgBean;
import com.mints.highgold.mvp.presenters.GamePresenter; import com.mints.highgold.mvp.presenters.GamePresenter;
import com.mints.highgold.mvp.views.GameView; import com.mints.highgold.mvp.views.GameView;
...@@ -60,7 +62,7 @@ public class GameFragment extends BaseFragment ...@@ -60,7 +62,7 @@ public class GameFragment extends BaseFragment
private GamePresenter gamePresenter; private GamePresenter gamePresenter;
private UserTaskMsgBean userConfig = null; private MyInfo userConfig = null;
private String gameName; private String gameName;
private String gameID; private String gameID;
...@@ -181,7 +183,7 @@ public class GameFragment extends BaseFragment ...@@ -181,7 +183,7 @@ public class GameFragment extends BaseFragment
} }
@Override @Override
public void getUserTaskMsgSuc(UserTaskMsgBean data) { public void getUserTaskMsgSuc(MyInfo data) {
if (data == null) { if (data == null) {
userConfig = null; userConfig = null;
return; return;
......
...@@ -69,6 +69,8 @@ import com.mints.highgold.ui.widgets.WaterView; ...@@ -69,6 +69,8 @@ import com.mints.highgold.ui.widgets.WaterView;
import com.mints.highgold.ui.widgets.countdowntimer.CountDownTimerSupport; import com.mints.highgold.ui.widgets.countdowntimer.CountDownTimerSupport;
import com.mints.highgold.ui.widgets.countdowntimer.OnCountDownTimerListener; import com.mints.highgold.ui.widgets.countdowntimer.OnCountDownTimerListener;
import com.mints.highgold.ui.widgets.refresh.CustomRefreshLayout; import com.mints.highgold.ui.widgets.refresh.CustomRefreshLayout;
import com.mints.highgold.utils.DeviceUuidFactory;
import com.mints.highgold.utils.DevicesUtil;
import com.mints.highgold.utils.MD5; import com.mints.highgold.utils.MD5;
import com.mints.highgold.utils.SPUtil; import com.mints.highgold.utils.SPUtil;
import com.mints.highgold.utils.SpanUtils; import com.mints.highgold.utils.SpanUtils;
...@@ -405,6 +407,10 @@ public class MainFragment extends BaseFragment ...@@ -405,6 +407,10 @@ public class MainFragment extends BaseFragment
Bundle bundle; Bundle bundle;
switch (view.getId()) { switch (view.getId()) {
case R.id.tv_fragment_main_whatgold:// 如何赚金币 case R.id.tv_fragment_main_whatgold:// 如何赚金币
System.out.println("mcg __ getPesudoUniqueID:"+ DevicesUtil.getPesudoUniqueID());
System.out.println("mcg __ getUUID:"+ DevicesUtil.getUUID());
System.out.println("mcg __ googld device UUID:"+ new DeviceUuidFactory(getContext()).getDeviceUuid().toString());
readyGo(WhatGoldActivity.class); readyGo(WhatGoldActivity.class);
break; break;
case R.id.iv_fragment_main_putcard:// 补卡 case R.id.iv_fragment_main_putcard:// 补卡
......
...@@ -65,19 +65,12 @@ public class DevicesUtil { ...@@ -65,19 +65,12 @@ public class DevicesUtil {
String serial = null; String serial = null;
String m_szDevIDShort = "35" + String m_szDevIDShort = "35" +
Build.BOARD.length() % 10 + Build.BRAND.length() % 10 + Build.BOARD.length() % 10 + Build.BRAND.length() % 10 +
Build.CPU_ABI.length() % 10 + Build.DEVICE.length() % 10 + Build.CPU_ABI.length() % 10 + Build.DEVICE.length() % 10 +
Build.DISPLAY.length() % 10 + Build.HOST.length() % 10 + Build.DISPLAY.length() % 10 + Build.HOST.length() % 10 +
Build.ID.length() % 10 + Build.MANUFACTURER.length() % 10 + Build.ID.length() % 10 + Build.MANUFACTURER.length() % 10 +
Build.MODEL.length() % 10 + Build.PRODUCT.length() % 10 + Build.MODEL.length() % 10 + Build.PRODUCT.length() % 10 +
Build.TAGS.length() % 10 + Build.TYPE.length() % 10 + Build.TAGS.length() % 10 + Build.TYPE.length() % 10 +
Build.USER.length() % 10; //13 位 Build.USER.length() % 10; //13 位
try { try {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
serial = android.os.Build.getSerial(); serial = android.os.Build.getSerial();
......
...@@ -163,12 +163,10 @@ ...@@ -163,12 +163,10 @@
android:layout_marginBottom="20pt" android:layout_marginBottom="20pt"
android:background="@color/order_hint_color" /> android:background="@color/order_hint_color" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="50pt" android:layout_marginLeft="50pt"
android:layout_marginTop="20pt"
android:layout_marginRight="50pt" android:layout_marginRight="50pt"
android:orientation="horizontal"> android:orientation="horizontal">
...@@ -209,12 +207,69 @@ ...@@ -209,12 +207,69 @@
</LinearLayout> </LinearLayout>
<LinearLayout
android:visibility="gone"
android:id="@+id/ll_drawcash_top"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="60pt"
android:layout_marginTop="10pt"
android:layout_marginRight="60pt"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="提现说明"
android:textColor="@color/black"
android:textSize="14sp" />
<TextView
android:id="@+id/tv_drawcash_hint_top"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20pt"
android:text="每新邀请X位有效好友即可提现,提现成功立返8x金币"
android:textColor="@color/graya"
android:textSize="12sp" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20pt">
<TextView
android:id="@+id/tv_drawcash_friends_top"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:text="可用有效好友数"
android:textColor="@color/main_mints"
android:textSize="14sp" />
<TextView
android:id="@+id/tv_drawcash_friendsnext_top"
android:layout_width="150pt"
android:layout_height="60pt"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:background="@drawable/shape_tv_gold"
android:gravity="center"
android:text="邀请好友"
android:textColor="@color/white"
android:textSize="10sp" />
</RelativeLayout>
</LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="50pt" android:layout_marginLeft="50pt"
android:layout_marginTop="20pt" android:layout_marginTop="20pt"
android:layout_marginRight="50pt" android:layout_marginRight="50pt"
android:gravity="center_vertical"
android:orientation="horizontal"> android:orientation="horizontal">
<Button <Button
...@@ -249,17 +304,63 @@ ...@@ -249,17 +304,63 @@
</LinearLayout> </LinearLayout>
<LinearLayout
android:visibility="gone"
android:id="@+id/ll_drawcash_bottom"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="60pt"
android:layout_marginTop="10pt"
android:layout_marginRight="60pt"
android:orientation="vertical">
<TextView <TextView
android:id="@+id/tv_drawcash_wxnotify"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="50pt" android:text="提现说明"
android:layout_marginTop="30pt" android:textColor="@color/black"
android:layout_marginRight="50pt" android:textSize="14sp" />
android:textColor="@color/gold_try_color"
<TextView
android:id="@+id/tv_drawcash_hint_bottom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20pt"
android:text="每新邀请X位有效好友即可提现,提现成功立返8x金币"
android:textColor="@color/graya"
android:textSize="12sp" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20pt">
<TextView
android:id="@+id/tv_drawcash_friends_bottom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:text="可用有效好友数"
android:textColor="@color/main_mints"
android:textSize="14sp" /> android:textSize="14sp" />
<TextView
android:id="@+id/tv_drawcash_friendsnext_bottom"
android:layout_width="150pt"
android:layout_height="60pt"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:background="@drawable/shape_tv_gold"
android:gravity="center"
android:text="邀请好友"
android:textColor="@color/white"
android:textSize="10sp" />
</RelativeLayout>
</LinearLayout>
<TextView <TextView
android:id="@+id/tv_drawcash_explain" android:id="@+id/tv_drawcash_explain"
android:layout_width="wrap_content" android:layout_width="wrap_content"
......
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