修改问题

This commit is contained in:
18401019693 2024-04-01 14:32:46 +08:00
parent 3cca1a9e54
commit cd3feebb94
3 changed files with 16 additions and 5 deletions

View File

@ -8,6 +8,17 @@ public class GuardModel extends BaseModel {
private String type;
@SerializedName("endtime")
private String endtime;
@SerializedName("guard_type")
private String guardType;
public String getGuardType() {
return guardType;
}
public GuardModel setGuardType(String guardType) {
this.guardType = guardType;
return this;
}
public String getType() {
return type;

View File

@ -316,7 +316,7 @@ public class LiveTextRender {
}
if (drawable != null) {
builder.append(" ");
drawable.setBounds(0, 0, DpUtil.dp2px(35), DpUtil.dp2px(17));
drawable.setBounds(0, 0, DpUtil.dp2px(34), DpUtil.dp2px(17));
builder.setSpan(new VerticalImageSpan(drawable), index, index + 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
index = builder.length();
}

View File

@ -696,12 +696,12 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
upDataPkScore(pkInfo.getJSONArray("userlist"), pkInfo.getIntValue("drpk_time"));
}
if (data.getGuardUserAvatar() != null) {
if (data.getEnterRoomInfo().getGuard() != null) {
if (mLiveRoomViewHolder != null) {
if (TextUtils.isEmpty(data.getGuardUserAvatar().getGuardType())) {
mLiveRoomViewHolder.setGuardType(0);
if (TextUtils.isEmpty(data.getEnterRoomInfo().getGuard().getGuardType())) {
IMLoginManager.get(mContext).setGuardType(0);
} else {
int guardType = Integer.parseInt(data.getGuardUserAvatar().getGuardType());
int guardType = Integer.parseInt(data.getEnterRoomInfo().getGuard().getGuardType());
IMLoginManager.get(mContext).setGuardType(guardType);
}