6.5.4礼物冠名

This commit is contained in:
18401019693 2023-08-22 13:31:32 +08:00
parent 3b351ffad8
commit 95252f2f02
2 changed files with 17 additions and 1 deletions

View File

@ -12,6 +12,17 @@ public class GiftWallGiftDetail extends BaseModel {
private String avatar; private String avatar;
@SerializedName("naming_coin") @SerializedName("naming_coin")
private String namingCoin; private String namingCoin;
@SerializedName("default_naming_coin")
private String default_naming_coin;
public String getDefault_naming_coin() {
return default_naming_coin;
}
public GiftWallGiftDetail setDefault_naming_coin(String default_naming_coin) {
this.default_naming_coin = default_naming_coin;
return this;
}
public int getUid() { public int getUid() {
return uid; return uid;

View File

@ -117,8 +117,13 @@ public class GiftWallItemPopup extends CenterPopupView {
distanceNaming.setVisibility(GONE); distanceNaming.setVisibility(GONE);
} else { } else {
distanceNaming.setVisibility(VISIBLE); distanceNaming.setVisibility(VISIBLE);
if ( !csb){
distanceNaming.setText(String.format(getContext().getString(R.string.distance_naming), String.valueOf(data.getDefault_naming_coin())));
}else {
distanceNaming.setText(String.format(getContext().getString(R.string.distance_naming), String.valueOf(data.getNamingCoin()))); distanceNaming.setText(String.format(getContext().getString(R.string.distance_naming), String.valueOf(data.getNamingCoin())));
} }
}
} }
@Override @Override