Commit fb74386b authored by mengcuiguang's avatar mengcuiguang

好兔优化

parent 3a5749f8
...@@ -215,6 +215,10 @@ dependencies { ...@@ -215,6 +215,10 @@ dependencies {
} }
implementation 'tv.danmaku.ijk.media:ijkplayer-java:0.8.8' implementation 'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
implementation 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.8' implementation 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.8'
implementation 'tv.danmaku.ijk.media:ijkplayer-armv5:0.8.8'
implementation 'tv.danmaku.ijk.media:ijkplayer-arm64:0.8.8'
implementation 'tv.danmaku.ijk.media:ijkplayer-x86:0.8.8'
implementation 'tv.danmaku.ijk.media:ijkplayer-x86_64:0.8.8'
// 数美 // 数美
implementation files('libs/smantifraud.aar') implementation files('libs/smantifraud.aar')
// 猎豹游戏 // 猎豹游戏
......
...@@ -10,6 +10,7 @@ public class DrawcashBean implements Serializable { ...@@ -10,6 +10,7 @@ public class DrawcashBean implements Serializable {
private String drawcashRule; private String drawcashRule;
private String drawcashHint; private String drawcashHint;
private int coin; private int coin;
private String remark;
private List<CashOutMoneyArrBean> cashOutMoneyArr; private List<CashOutMoneyArrBean> cashOutMoneyArr;
public String getOpenid() { public String getOpenid() {
...@@ -60,10 +61,18 @@ public class DrawcashBean implements Serializable { ...@@ -60,10 +61,18 @@ public class DrawcashBean implements Serializable {
this.cashOutMoneyArr = cashOutMoneyArr; this.cashOutMoneyArr = cashOutMoneyArr;
} }
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public class CashOutMoneyArrBean implements Serializable { public class CashOutMoneyArrBean implements Serializable {
private double money; private double money;
private boolean canCashOut; private boolean canCashOut;
private String remark;
public double getMoney() { public double getMoney() {
return money; return money;
...@@ -81,12 +90,6 @@ public class DrawcashBean implements Serializable { ...@@ -81,12 +90,6 @@ public class DrawcashBean implements Serializable {
this.canCashOut = canCashOut; this.canCashOut = canCashOut;
} }
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
} }
} }
...@@ -91,14 +91,6 @@ public interface LoanService { ...@@ -91,14 +91,6 @@ public interface LoanService {
@POST("api/saveTerminalInfo") @POST("api/saveTerminalInfo")
Observable<BaseResponse<Object>> saveTerminalInfo(@Body Map<String, Object> vo); Observable<BaseResponse<Object>> saveTerminalInfo(@Body Map<String, Object> vo);
// /**
// * 我的界面信息
// *
// * @return
// */
// @POST("api/getUserHallBaseMsg")
// Observable<BaseResponse<MyInfo>> getUserHallBaseMsg();
/** /**
* 热门活动接口 * 热门活动接口
* *
......
...@@ -215,7 +215,7 @@ class DrawcashActivity : BaseActivity(), ...@@ -215,7 +215,7 @@ class DrawcashActivity : BaseActivity(),
private fun initRvView() { private fun initRvView() {
val gridLayoutManager = GridLayoutManager(this, 3) val gridLayoutManager = GridLayoutManager(this, 3)
rvCash.layoutManager = gridLayoutManager rvCash.layoutManager = gridLayoutManager
drawcashAdapter = priceList?.let { DrawcashAdapter(it) }!! drawcashAdapter = priceList?.let { DrawcashAdapter(it, userConfig?.remark!!) }!!
rvCash.adapter = drawcashAdapter rvCash.adapter = drawcashAdapter
drawcashAdapter.setOnItemClickListener(this) drawcashAdapter.setOnItemClickListener(this)
......
...@@ -14,7 +14,7 @@ import com.mints.goodmoney.mvp.model.DrawcashBean ...@@ -14,7 +14,7 @@ import com.mints.goodmoney.mvp.model.DrawcashBean
import com.mints.goodmoney.ui.adapter.listener.OnItemClickListener import com.mints.goodmoney.ui.adapter.listener.OnItemClickListener
import java.lang.String import java.lang.String
class DrawcashAdapter(val priceList: MutableList<DrawcashBean.CashOutMoneyArrBean>) : class DrawcashAdapter(val priceList: MutableList<DrawcashBean.CashOutMoneyArrBean>, val remark:kotlin.String) :
RecyclerView.Adapter<DrawcashAdapter.ViewHolder>() { RecyclerView.Adapter<DrawcashAdapter.ViewHolder>() {
var myPos: Int = 0 var myPos: Int = 0
...@@ -55,10 +55,7 @@ class DrawcashAdapter(val priceList: MutableList<DrawcashBean.CashOutMoneyArrBea ...@@ -55,10 +55,7 @@ class DrawcashAdapter(val priceList: MutableList<DrawcashBean.CashOutMoneyArrBea
holder.tvDrawItemCash.text = "${priceBean.money}元" holder.tvDrawItemCash.text = "${priceBean.money}元"
} }
if (priceBean.money == 0.3) { if (priceBean.money == 0.3) {
priceBean.remark = "天天可提现" holder.tvDrawItemHint.text = remark
}
if (!TextUtils.isEmpty(priceBean.remark)) {
holder.tvDrawItemHint.text = priceBean.remark
} }
holder.tvDrawItemGold.text = "约${String.format("%.0f", priceBean.money * 10000)}金币" holder.tvDrawItemGold.text = "约${String.format("%.0f", priceBean.money * 10000)}金币"
......
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