推荐加跳转直播间

This commit is contained in:
18401019693 2022-09-22 13:41:14 +08:00
parent ab2991a999
commit aaa453c903
2 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,7 @@ public class MsgModel extends BaseModel {
private String nobleId = ""; private String nobleId = "";
@SerializedName("trumpet_msg") @SerializedName("trumpet_msg")
private String trumpetMsg = ""; private String trumpetMsg = "";
@SerializedName("anchor_id") @SerializedName(value = "anchor_id", alternate = {"liveuid"})
private String anchorId = ""; private String anchorId = "";
/** /**

View File

@ -142,6 +142,7 @@ import pl.droidsonroids.gif.GifImageView;
import static com.yunbao.common.CommonAppContext.logger; import static com.yunbao.common.CommonAppContext.logger;
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics; import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
import static com.yunbao.live.bean.LiveChatBean.RECOMMEND_CARD_NOTIFY;
/** /**
* Created by cxf on 2018/10/9. * Created by cxf on 2018/10/9.
@ -808,6 +809,8 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
LiveHDDialogFragment liveHDDialogFragment = new LiveHDDialogFragment(); LiveHDDialogFragment liveHDDialogFragment = new LiveHDDialogFragment();
liveHDDialogFragment.setArguments(bundle1); liveHDDialogFragment.setArguments(bundle1);
liveHDDialogFragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveHDDialogFragment"); liveHDDialogFragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveHDDialogFragment");
} else if (bean.getType() == RECOMMEND_CARD_NOTIFY) {
gotoLive(bean.getMsgModel().getAnchorId());
} else { } else {
showUserDialog(bean.getId()); showUserDialog(bean.getId());
} }