From c49c560e8daaa6cc32bd9b226292b357d9482cc4 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Fri, 9 Dec 2022 17:08:12 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E9=9A=8F=E6=9C=BAPK=20=E8=A1=A5?= =?UTF-8?q?=E5=85=85=E6=8B=92=E7=BB=9DPK=E5=90=8E=E7=9A=84=E5=AF=B9?= =?UTF-8?q?=E8=AF=9D=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/live/dialog/RandomPkDialogFragment.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/live/src/main/java/com/yunbao/live/dialog/RandomPkDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/RandomPkDialogFragment.java index 01a45d438..244984618 100644 --- a/live/src/main/java/com/yunbao/live/dialog/RandomPkDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/RandomPkDialogFragment.java @@ -219,6 +219,13 @@ public class RandomPkDialogFragment extends AbsDialogFragment implements View.On loadDialog = null; if (data.getCode() == 0) { setSwitchBtn(!(boolean) mRandomPkSwitch.getTag()); + } else if (data.getCode() == 500) { + DialogUitl.showSimpleDialog(mContext, "您因拒绝随机PK,被限制关闭中", "随机PK可打开时间:" + data.getMsg(), false, new DialogUitl.SimpleCallback() { + @Override + public void onConfirmClick(Dialog dialog, String content) { + dialog.dismiss(); + } + }); } else { ToastUtil.show(data.getMsg()); } @@ -257,7 +264,7 @@ public class RandomPkDialogFragment extends AbsDialogFragment implements View.On mPkBtn.setTag(true); } } else { - ToastUtil.show("請先關閉語言連麥"); + ToastUtil.show("請先關閉語言連麥"); } } });