修改线上问题
This commit is contained in:
parent
91743ecd3d
commit
94c5f4b809
@ -906,4 +906,13 @@ public class LiveHttpUtil {
|
|||||||
.params("", anchor_id)
|
.params("", anchor_id)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 获取用户贵族喇叭的数量
|
||||||
|
*/
|
||||||
|
public static void getStarChallengeStatus(String liveUid,HttpCallback callback) {
|
||||||
|
HttpClient.getInstance().get("StarChallenge.getStarChallengeStatus", "StarChallengeStatus")
|
||||||
|
.params("liveUid", liveUid)
|
||||||
|
.execute(callback);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -717,7 +717,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
if (!SpUtil.getInstance().getBooleanValue("private_chat_message_switch")) {
|
if (!SpUtil.getInstance().getBooleanValue("private_chat_message_switch")) {
|
||||||
msgLayout.setVisibility(View.GONE);
|
msgLayout.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
if(!IMLoginManager.get(mContext).hintChat()){
|
if (!IMLoginManager.get(mContext).hintChat()) {
|
||||||
msgLayout.setVisibility(View.VISIBLE);
|
msgLayout.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
mHandler = new Handler() {
|
mHandler = new Handler() {
|
||||||
@ -1031,7 +1031,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
* 获取当前直播间星级
|
* 获取当前直播间星级
|
||||||
*/
|
*/
|
||||||
LiveNetManager.get(mContext)
|
LiveNetManager.get(mContext)
|
||||||
.getStarChallengeStatus(mLiveUid, new com.yunbao.common.http.base.HttpCallback<StarChallengeStatusModel>() {
|
.getStarChallengeStatus(PortraitLiveManager.liveID, new com.yunbao.common.http.base.HttpCallback<StarChallengeStatusModel>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(StarChallengeStatusModel data1) {
|
public void onSuccess(StarChallengeStatusModel data1) {
|
||||||
showStart(data1);
|
showStart(data1);
|
||||||
@ -1046,17 +1046,21 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void showStart(StarChallengeStatusModel data) {
|
public void showStart(StarChallengeStatusModel data) {
|
||||||
boolean star = false;
|
boolean upData = false;
|
||||||
if (mBannerList2 == null) {
|
if (mBannerList2 == null || mBannerList2.size() == 0) {
|
||||||
mBannerList2 = new ArrayList<>();
|
mBannerList2 = new ArrayList<>();
|
||||||
|
BannerBean bannerBean = new BannerBean();
|
||||||
|
bannerBean.setStart(true);
|
||||||
|
bannerBean.setModel(data);
|
||||||
|
mBannerList2.add(bannerBean);
|
||||||
} else {
|
} else {
|
||||||
for (BannerBean bean : mBannerList2) {
|
for (BannerBean bean : mBannerList2) {
|
||||||
if (bean.isStart()) {
|
if (bean.isStart()) {
|
||||||
star = true;
|
|
||||||
bean.setModel(data);
|
bean.setModel(data);
|
||||||
|
upData = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!star) {
|
if (!upData) {
|
||||||
BannerBean bannerBean = new BannerBean();
|
BannerBean bannerBean = new BannerBean();
|
||||||
bannerBean.setStart(true);
|
bannerBean.setStart(true);
|
||||||
bannerBean.setModel(data);
|
bannerBean.setModel(data);
|
||||||
@ -1064,7 +1068,14 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mBanner2.update(mBannerList2);
|
|
||||||
|
Log.e("PortraitLiveManager", "mBanner2.isStart():::::::::::" + mBanner2.isStart());
|
||||||
|
if (mBanner2.isStart()) {
|
||||||
|
mBanner2.update(mBannerList2);
|
||||||
|
} else {
|
||||||
|
showBanner2();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void hideFloatMsg() {
|
public void hideFloatMsg() {
|
||||||
@ -1073,11 +1084,13 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
|
|
||||||
private void showBanner2() {
|
private void showBanner2() {
|
||||||
if (mBannerList2 == null || mBannerList2.size() == 0 || mBanner2 == null) {
|
if (mBannerList2 == null || mBannerList2.size() == 0 || mBanner2 == null) {
|
||||||
|
Log.e("PortraitLiveManager", "加载不了");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
btn_event2.setVisibility(View.VISIBLE);
|
btn_event2.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
if (mBannerList2.size() == 1) {
|
if (mBannerList2.size() == 1) {
|
||||||
|
|
||||||
mBanner2.setAutoPlay(false)
|
mBanner2.setAutoPlay(false)
|
||||||
.setPages(mBannerList2, new CustomViewHolder())
|
.setPages(mBannerList2, new CustomViewHolder())
|
||||||
.setDelayTime(3000)
|
.setDelayTime(3000)
|
||||||
|
@ -49,7 +49,6 @@ import com.yunbao.common.http.CommonHttpConsts;
|
|||||||
import com.yunbao.common.http.CommonHttpUtil;
|
import com.yunbao.common.http.CommonHttpUtil;
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
import com.yunbao.common.http.HttpClient;
|
import com.yunbao.common.http.HttpClient;
|
||||||
import com.yunbao.common.http.live.LiveNetManager;
|
|
||||||
import com.yunbao.common.manager.IMLoginManager;
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
import com.yunbao.common.utils.Bus;
|
import com.yunbao.common.utils.Bus;
|
||||||
import com.yunbao.common.utils.DialogUitl;
|
import com.yunbao.common.utils.DialogUitl;
|
||||||
@ -286,6 +285,15 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
mLiveRoomViewHolder.initHourRankList();
|
mLiveRoomViewHolder.initHourRankList();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// LiveHttpUtil.getStarChallengeStatus(mLiveBean.getUid(), new HttpCallback() {
|
||||||
|
// @Override
|
||||||
|
// public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
// Log.e("PortraitLiveManager",info[0]);
|
||||||
|
// StarChallengeStatusModel model = GsonUtils.fromJson(info[0], StarChallengeStatusModel.class);
|
||||||
|
// mLiveRoomViewHolder.showStart(model);
|
||||||
|
// }
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -295,6 +303,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
LiveHttpUtil.cancel(LiveHttpConsts.ROOM_CHARGE);
|
LiveHttpUtil.cancel(LiveHttpConsts.ROOM_CHARGE);
|
||||||
CommonHttpUtil.cancel(CommonHttpConsts.GET_BALANCE);
|
CommonHttpUtil.cancel(CommonHttpConsts.GET_BALANCE);
|
||||||
CommonHttpUtil.cancel(LiveHttpConsts.GET_WISH_LIST);
|
CommonHttpUtil.cancel(LiveHttpConsts.GET_WISH_LIST);
|
||||||
|
CommonHttpUtil.cancel("StarChallengeStatus");
|
||||||
IMLoginManager.get(mContext).setisNewUserOne(false);
|
IMLoginManager.get(mContext).setisNewUserOne(false);
|
||||||
//子线程执行退出操作
|
//子线程执行退出操作
|
||||||
exitLiveRoom();
|
exitLiveRoom();
|
||||||
|
Loading…
Reference in New Issue
Block a user