From efa698ebfa755bea5050d18e008f3e98d33bc1c6 Mon Sep 17 00:00:00 2001 From: 18142669586 <1669783059@qq.com> Date: Fri, 31 May 2024 20:55:09 +0800 Subject: [PATCH] 1 --- .../presenter/LiveSwLinkMicPkPresenter.java | 36 ++++++++++--------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/presenter/LiveSwLinkMicPkPresenter.java b/live/src/main/java/com/yunbao/live/presenter/LiveSwLinkMicPkPresenter.java index c0de23c10..5a95abddb 100644 --- a/live/src/main/java/com/yunbao/live/presenter/LiveSwLinkMicPkPresenter.java +++ b/live/src/main/java/com/yunbao/live/presenter/LiveSwLinkMicPkPresenter.java @@ -352,25 +352,27 @@ public class LiveSwLinkMicPkPresenter implements View.OnClickListener { public void onSuccess(int code, String msg, String[] info) { if (code == 0) { JSONObject datas = JSONObject.parseObject(info[0]); -// SocketSendBean seed_msg = new SocketSendBean().param("_method_", SOCKET_LINK_MIC_PK).param("action", 9).param("msgtype", 10).param("win_uid", datas.getString("win_uid")).param("uid", CommonAppConfig.getInstance().getUid()); -// seed_msg.create(); -// String pkUid = datas.getString("pkuid"); -// Log.i("seed", seed_msg.mResult.toString()); + if (!datas.getString("pkuid").equals("0")) { + SocketSendBean seed_msg = new SocketSendBean().param("_method_", SOCKET_LINK_MIC_PK).param("action", 9).param("msgtype", 10).param("win_uid", datas.getString("win_uid")).param("uid", CommonAppConfig.getInstance().getUid()); + seed_msg.create(); + String pkUid = datas.getString("pkuid"); + Log.i("seed", seed_msg.mResult.toString()); - Log.e("ry1", datas.getString("win_uid") + "VVVVVV" + datas.getString("pkuid")); + Log.e("ry1", datas.getString("win_uid") + "VVVVVV" + datas.getString("pkuid")); -// HttpClient.getInstance().post("Tx.sendmsgzs2", "Tx.sendmsgzs2").params("GroupId", "g" + pkUid).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() { -// @Override -// public void onSuccess(int code, String msg, String[] info) { -// HttpClient.getInstance().post("Tx.sendmsgzs2", "Tx.sendmsgzs2").params("GroupId", "g" + CommonAppConfig.getInstance().getUid()).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() { -// @Override -// public void onSuccess(int code, String msg, String[] info) { -// -// } -// }); -// } -// }); + HttpClient.getInstance().post("Tx.sendmsgzs2", "Tx.sendmsgzs2").params("GroupId", "g" + pkUid).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() { + @Override + public void onSuccess(int code, String msg, String[] info) { + HttpClient.getInstance().post("Tx.sendmsgzs2", "Tx.sendmsgzs2").params("GroupId", "g" + CommonAppConfig.getInstance().getUid()).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() { + @Override + public void onSuccess(int code, String msg, String[] info) { + } + }); + } + }); + + } } } }); @@ -474,7 +476,7 @@ public class LiveSwLinkMicPkPresenter implements View.OnClickListener { } } SWManager.get().setDrPkNumClarity(drPkbeans.size()); - if(drPkbeans.size()==1){ + if (drPkbeans.size() == 1) { mLiveAnchorViewHolder.closeEndPkBt(); } }