修复测试反馈问题
This commit is contained in:
parent
dc87fc7048
commit
1aa6cb8f55
@ -208,6 +208,10 @@ public class LiveBattlePassRewardsBean extends BaseModel{
|
|||||||
", liveBattlePassTypeId=" + liveBattlePassTypeId +
|
", liveBattlePassTypeId=" + liveBattlePassTypeId +
|
||||||
", rewardName='" + rewardName + '\'' +
|
", rewardName='" + rewardName + '\'' +
|
||||||
", imageUrl='" + imageUrl + '\'' +
|
", imageUrl='" + imageUrl + '\'' +
|
||||||
|
", sendRewardType=" + sendRewardType +
|
||||||
|
", sendGiftType=" + sendGiftType +
|
||||||
|
", sendRewardNeedcoin='" + sendRewardNeedcoin + '\'' +
|
||||||
|
", sendRewardRestrictTime='" + sendRewardRestrictTime + '\'' +
|
||||||
", lock=" + lock +
|
", lock=" + lock +
|
||||||
", received=" + received +
|
", received=" + received +
|
||||||
'}';
|
'}';
|
||||||
|
@ -122,6 +122,7 @@ public class BattlePassExchangeAdapter extends RecyclerView.Adapter<BattlePassEx
|
|||||||
}
|
}
|
||||||
topMoney.setText(String.valueOf(battlePassPoints.getSendGiftNeedcoin()));
|
topMoney.setText(String.valueOf(battlePassPoints.getSendGiftNeedcoin()));
|
||||||
if (battlePassPoints.getSendGiftType() == 999) {
|
if (battlePassPoints.getSendGiftType() == 999) {
|
||||||
|
topMoneySubscript.setVisibility(View.VISIBLE);
|
||||||
topMoney.setText(String.format("%s%s", battlePassPoints.getRestrictTime(), WordUtil.isNewZh() ? "天" : "Days"));
|
topMoney.setText(String.format("%s%s", battlePassPoints.getRestrictTime(), WordUtil.isNewZh() ? "天" : "Days"));
|
||||||
if (battlePassPoints.getRestrictTime() == 0) {
|
if (battlePassPoints.getRestrictTime() == 0) {
|
||||||
topMoney.setText(WordUtil.isNewZh() ? "永久" : "Forever");
|
topMoney.setText(WordUtil.isNewZh() ? "永久" : "Forever");
|
||||||
|
@ -251,6 +251,7 @@ public class BattlePassRewardAdapter extends RecyclerView.Adapter<BattlePassRewa
|
|||||||
}), tab1TopMoneyIcon, tab2TopMoneyIcon, tab3TopMoneyIcon);
|
}), tab1TopMoneyIcon, tab2TopMoneyIcon, tab3TopMoneyIcon);
|
||||||
getAllView(((reward, view) -> {
|
getAllView(((reward, view) -> {
|
||||||
view.setText(String.valueOf(reward.getSendRewardNeedcoin()));
|
view.setText(String.valueOf(reward.getSendRewardNeedcoin()));
|
||||||
|
((View)view.getParent()).setVisibility(View.VISIBLE);
|
||||||
if (reward.getSendGiftType() == 999) {
|
if (reward.getSendGiftType() == 999) {
|
||||||
view.setText(reward.getSendRewardRestrictTime() + (WordUtil.isNewZh() ? "天" : "Days"));
|
view.setText(reward.getSendRewardRestrictTime() + (WordUtil.isNewZh() ? "天" : "Days"));
|
||||||
if (reward.getSendRewardRestrictTime().equals("0")) {
|
if (reward.getSendRewardRestrictTime().equals("0")) {
|
||||||
@ -262,6 +263,7 @@ public class BattlePassRewardAdapter extends RecyclerView.Adapter<BattlePassRewa
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void getReward(LiveBattlePassRewardsBean.LiveBattlePassReward reward) {
|
private void getReward(LiveBattlePassRewardsBean.LiveBattlePassReward reward) {
|
||||||
|
System.err.println(reward);
|
||||||
if (userLevel < reward.getLiveBattlePassLevel()) {
|
if (userLevel < reward.getLiveBattlePassLevel()) {
|
||||||
ToastUtil.show(WordUtil.getNewString(R.string.battlepass_reward_item_lock));
|
ToastUtil.show(WordUtil.getNewString(R.string.battlepass_reward_item_lock));
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user