fix:直播间侧边推荐banner点击跳转后未打开新人签到对话框
This commit is contained in:
parent
80f23f4cc3
commit
99d32c03b2
@ -15,6 +15,8 @@ public class SlideInfoModel extends BaseModel {
|
||||
private String slidePic = "";
|
||||
@SerializedName("slide_url")
|
||||
private String slideUrl = "";
|
||||
@SerializedName("type")
|
||||
private int type;
|
||||
|
||||
public String getSlidePic() {
|
||||
return slidePic;
|
||||
@ -33,4 +35,12 @@ public class SlideInfoModel extends BaseModel {
|
||||
this.slideUrl = slideUrl;
|
||||
return this;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,9 @@ import com.yunbao.common.bean.LiveBean;
|
||||
import com.yunbao.live.http.LiveHttpUtil;
|
||||
import com.yunbao.live.presenter.LiveRoomCheckLivePresenter;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class SidebarViewHoler extends RecyclerView.ViewHolder {
|
||||
//侧边栏轮播
|
||||
@ -54,7 +56,7 @@ public class SidebarViewHoler extends RecyclerView.ViewHolder {
|
||||
if (link.contains("http")) {
|
||||
WebViewActivity.forward(itemView.getContext(), link, true);
|
||||
} else {
|
||||
gotoLive(link);
|
||||
gotoLive(link, bean.getType());
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -66,7 +68,7 @@ public class SidebarViewHoler extends RecyclerView.ViewHolder {
|
||||
/**
|
||||
* 前往直播间
|
||||
*/
|
||||
private void gotoLive(final String liveId) {
|
||||
private void gotoLive(final String liveId, int type) {
|
||||
LiveHttpUtil.getLiveInfo(liveId, new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
@ -76,7 +78,12 @@ public class SidebarViewHoler extends RecyclerView.ViewHolder {
|
||||
if (liveBean1 == null) {
|
||||
return;
|
||||
}
|
||||
LiveAudienceActivity.forward(itemView.getContext(), liveBean1, liveType, liveTypeVal, "", 0, liveSdk);
|
||||
Map<String, String> map = null;
|
||||
if (type == 2) {
|
||||
map = new HashMap<>();
|
||||
map.put("OPEN", "NEWUSER");
|
||||
}
|
||||
LiveAudienceActivity.forward(itemView.getContext(), liveBean1, liveType, liveTypeVal, "", map, 0, liveSdk);
|
||||
((Activity) itemView.getContext()).finish();
|
||||
});
|
||||
mCheckLivePresenter.checkLive(liveBean);
|
||||
|
Loading…
Reference in New Issue
Block a user