From 72f7e00dd50a254dcd26180a3d78e6865a0391d2 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Thu, 1 Dec 2022 17:25:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=80=E5=87=BA=E7=9B=B4?= =?UTF-8?q?=E6=92=AD=E9=97=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/http/live/LiveNetManager.java | 2 +- .../live/views/PortraitLiveManager.java | 33 ++++++------------- 2 files changed, 11 insertions(+), 24 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java b/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java index 27e34daf1..e35962d1d 100644 --- a/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java +++ b/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java @@ -436,7 +436,7 @@ public class LiveNetManager { @Override public void accept(ResponseModel> listResponseModel) throws Exception { if (callback != null) { - callback.onError(""); + callback.onSuccess(null); } } }, new Consumer() { diff --git a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java index bc966da83..be1513e7c 100644 --- a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java +++ b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java @@ -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() { + @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() { - @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();