From aaa453c9030d01707d02565aface6d3aa2913b12 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Thu, 22 Sep 2022 13:41:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E8=8D=90=E5=8A=A0=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E7=9B=B4=E6=92=AD=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/main/java/com/yunbao/common/bean/MsgModel.java | 2 +- .../main/java/com/yunbao/live/views/LiveRoomViewHolder.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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()); }