This commit is contained in:
18142669586 2024-05-31 20:55:09 +08:00
parent 6496440e5d
commit efa698ebfa

View File

@ -352,25 +352,27 @@ public class LiveSwLinkMicPkPresenter implements View.OnClickListener {
public void onSuccess(int code, String msg, String[] info) { public void onSuccess(int code, String msg, String[] info) {
if (code == 0) { if (code == 0) {
JSONObject datas = JSONObject.parseObject(info[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()); if (!datas.getString("pkuid").equals("0")) {
// seed_msg.create(); 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());
// String pkUid = datas.getString("pkuid"); seed_msg.create();
// Log.i("seed", seed_msg.mResult.toString()); 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() { HttpClient.getInstance().post("Tx.sendmsgzs2", "Tx.sendmsgzs2").params("GroupId", "g" + pkUid).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() {
// @Override @Override
// public void onSuccess(int code, String msg, String[] info) { 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() { HttpClient.getInstance().post("Tx.sendmsgzs2", "Tx.sendmsgzs2").params("GroupId", "g" + CommonAppConfig.getInstance().getUid()).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() {
// @Override @Override
// public void onSuccess(int code, String msg, String[] info) { public void onSuccess(int code, String msg, String[] info) {
//
// }
// });
// }
// });
}
});
}
});
}
} }
} }
}); });
@ -474,7 +476,7 @@ public class LiveSwLinkMicPkPresenter implements View.OnClickListener {
} }
} }
SWManager.get().setDrPkNumClarity(drPkbeans.size()); SWManager.get().setDrPkNumClarity(drPkbeans.size());
if(drPkbeans.size()==1){ if (drPkbeans.size() == 1) {
mLiveAnchorViewHolder.closeEndPkBt(); mLiveAnchorViewHolder.closeEndPkBt();
} }
} }