修复测试反馈问题

This commit is contained in:
zlzw 2024-01-25 16:38:44 +08:00
parent dc87fc7048
commit 1aa6cb8f55
3 changed files with 7 additions and 0 deletions

View File

@ -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 +
'}';

View File

@ -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");

View File

@ -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;