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