直播间退出接口时机修改,免费礼物的修改
This commit is contained in:
parent
e25980cec8
commit
bd9c8c2265
@ -387,7 +387,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
private FrameLayout pa_pao_layout;
|
||||
private LinearLayout combo_layout;
|
||||
private TextView combo_number;
|
||||
private View quick_gift_reminder ;
|
||||
private View quick_gift_reminder;
|
||||
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
public void onUpdata(String str) {
|
||||
@ -720,6 +720,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onQuickGifting3() {
|
||||
IMLoginManager.get(mContext).setQuickGiftIfFirst();
|
||||
quick_gift_reminder.setVisibility(View.GONE);
|
||||
@ -2574,9 +2575,11 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void setHotNum(String hotNum) {
|
||||
setHotData(formatBigNum.formatBigNum(hotNum));
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新心愿单进度
|
||||
*
|
||||
@ -4283,7 +4286,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
bean1.setId(Integer.parseInt(giftModel.getId()));
|
||||
bean1.setName(giftModel.getGiftname());
|
||||
bean1.setTag("1");
|
||||
|
||||
bean1.setPrice(WordUtil.isNewZh() ? "免费" : "free");
|
||||
if (!IMLoginManager.get(mContext).isisNewUserOne()) {
|
||||
if (TextUtils.equals(taskModel.getSendgift(), "0")) {
|
||||
IMLoginManager.get(mContext).setNewUserGif(true);
|
||||
|
@ -56,7 +56,6 @@ import com.yunbao.common.event.LiveFloatEvent;
|
||||
import com.yunbao.common.event.LiveGiftDialogEvent;
|
||||
import com.yunbao.common.event.LiveRoomChangeEvent;
|
||||
import com.yunbao.common.event.LiveSudGamePopupShowOrHideEvent;
|
||||
import com.yunbao.common.event.QuickGiftingEvent;
|
||||
import com.yunbao.common.event.SendBlindGiftEvent;
|
||||
import com.yunbao.common.glide.ImgLoader;
|
||||
import com.yunbao.common.http.CommonHttpConsts;
|
||||
@ -809,6 +808,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
||||
|
||||
@Override
|
||||
public void onRemove(boolean isQuit) {
|
||||
Log.e("直播间接口调用排查","onRemove---------------");
|
||||
LiveNetManager.get(mContext).cancelLive();
|
||||
liveHandler.removeCallbacks(sendFIm);
|
||||
linkMicPkStartHandler.removeCallbacks(linkMicPkStartRunnable);
|
||||
@ -1846,19 +1846,11 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
||||
if (!isEnterRoom) {
|
||||
return;
|
||||
}
|
||||
if (mLiveBean != null) {
|
||||
isEnterRoom = false;
|
||||
|
||||
RongChatRoomClient.getInstance().quitChatRoom("g" + mLiveBean.getUid(), new IRongCoreCallback.OperationCallback() {
|
||||
@Override
|
||||
public void onSuccess() {
|
||||
try {
|
||||
Log.i("tx", "退出成功" + mLiveBean.getUid());
|
||||
LiveNetManager.get(mContext)
|
||||
.leaveRoomNew(leaveStream, leaveGroupId, new com.yunbao.common.http.base.HttpCallback<String>() {
|
||||
@Override
|
||||
public void onSuccess(String data) {
|
||||
|
||||
Log.e("直播间接口调用排查","leaveRoomNew---------------");
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -1867,6 +1859,15 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
||||
});
|
||||
leaveStream = "";
|
||||
leaveGroupId = "";
|
||||
if (mLiveBean != null) {
|
||||
isEnterRoom = false;
|
||||
|
||||
RongChatRoomClient.getInstance().quitChatRoom("g" + mLiveBean.getUid(), new IRongCoreCallback.OperationCallback() {
|
||||
@Override
|
||||
public void onSuccess() {
|
||||
try {
|
||||
Log.i("tx", "退出成功" + mLiveBean.getUid());
|
||||
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
@ -1878,19 +1879,19 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
||||
public void onError(IRongCoreEnum.CoreErrorCode coreErrorCode) {
|
||||
try {
|
||||
|
||||
Log.i("tx", "退出成功" + mLiveBean.getUid());
|
||||
LiveNetManager.get(mContext)
|
||||
.leaveRoomNew(leaveStream, leaveGroupId, new com.yunbao.common.http.base.HttpCallback<String>() {
|
||||
@Override
|
||||
public void onSuccess(String data) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
}
|
||||
});
|
||||
leaveStream = "";
|
||||
leaveGroupId = "";
|
||||
// Log.i("tx", "退出成功" + mLiveBean.getUid());
|
||||
// LiveNetManager.get(mContext)
|
||||
// .leaveRoomNew(leaveStream, leaveGroupId, new com.yunbao.common.http.base.HttpCallback<String>() {
|
||||
// @Override
|
||||
// public void onSuccess(String data) {
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onError(String error) {
|
||||
// }
|
||||
// });
|
||||
// leaveStream = "";
|
||||
// leaveGroupId = "";
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user