update 随机PK 补充拒绝PK后的对话框

This commit is contained in:
zlzw 2022-12-09 17:08:12 +08:00
parent 8d3ac7761f
commit c49c560e8d

View File

@ -219,6 +219,13 @@ public class RandomPkDialogFragment extends AbsDialogFragment implements View.On
loadDialog = null; loadDialog = null;
if (data.getCode() == 0) { if (data.getCode() == 0) {
setSwitchBtn(!(boolean) mRandomPkSwitch.getTag()); 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 { } else {
ToastUtil.show(data.getMsg()); ToastUtil.show(data.getMsg());
} }
@ -257,7 +264,7 @@ public class RandomPkDialogFragment extends AbsDialogFragment implements View.On
mPkBtn.setTag(true); mPkBtn.setTag(true);
} }
} else { } else {
ToastUtil.show("請先關閉語言連麥"); ToastUtil.show("請先關閉語言連麥");
} }
} }
}); });