修复退出直播间问题

This commit is contained in:
18401019693 2022-12-01 17:25:41 +08:00
parent 707e083684
commit 72f7e00dd5
2 changed files with 11 additions and 24 deletions

View File

@ -436,7 +436,7 @@ public class LiveNetManager {
@Override
public void accept(ResponseModel<List<Object>> listResponseModel) throws Exception {
if (callback != null) {
callback.onError("");
callback.onSuccess(null);
}
}
}, new Consumer<Throwable>() {

View File

@ -1505,32 +1505,19 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
@Override
public void onSuccess() {
try {
V2TIMManager.getInstance().quitGroup("g" + mLiveBean.getUid(), new V2TIMCallback() {
@Override
public void onSuccess() {
Log.i("tx", "退出成功" + mLiveBean.getUid());
LiveNetManager.get(mContext)
.leaveRoomNew(mLiveBean.getStream(), mLiveBean.getUid(), new com.yunbao.common.http.base.HttpCallback<String>() {
@Override
public void onSuccess(String data) {
Log.i("tx", "退出成功" + mLiveBean.getUid());
LiveNetManager.get(mContext)
.leaveRoomNew(mLiveBean.getStream(), mLiveBean.getUid(), new com.yunbao.common.http.base.HttpCallback<String>() {
@Override
public void onSuccess(String data) {
if (isQuitF) {
onRemove(true);
}
}
}
@Override
public void onError(String error) {
@Override
public void onError(String error) {
}
});
}
@Override
public void onError(int code, String desc) {
Log.i("tx", "退出失败");
}
});
}
});
} catch (Exception e) {
e.printStackTrace();