diff --git a/common/src/main/java/com/yunbao/common/bean/MsgModel.java b/common/src/main/java/com/yunbao/common/bean/MsgModel.java index 052b06719..1b62310f6 100644 --- a/common/src/main/java/com/yunbao/common/bean/MsgModel.java +++ b/common/src/main/java/com/yunbao/common/bean/MsgModel.java @@ -25,7 +25,7 @@ public class MsgModel extends BaseModel { private String nobleId = ""; @SerializedName("trumpet_msg") private String trumpetMsg = ""; - @SerializedName("anchor_id") + @SerializedName(value = "anchor_id", alternate = {"liveuid"}) private String anchorId = ""; /** diff --git a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java index fdf97fbd5..656ce9c35 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -142,6 +142,7 @@ import pl.droidsonroids.gif.GifImageView; import static com.yunbao.common.CommonAppContext.logger; import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics; +import static com.yunbao.live.bean.LiveChatBean.RECOMMEND_CARD_NOTIFY; /** * Created by cxf on 2018/10/9. @@ -808,6 +809,8 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis LiveHDDialogFragment liveHDDialogFragment = new LiveHDDialogFragment(); liveHDDialogFragment.setArguments(bundle1); liveHDDialogFragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveHDDialogFragment"); + } else if (bean.getType() == RECOMMEND_CARD_NOTIFY) { + gotoLive(bean.getMsgModel().getAnchorId()); } else { showUserDialog(bean.getId()); }