From ae020b105a9874d07dd543094800ad740194d311 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Sat, 10 Dec 2022 15:00:48 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E9=9A=8F=E6=9C=BAPK=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E8=BF=94=E5=9B=9Euid=E4=B8=BA=E7=A9=BA=E6=97=B6?= =?UTF-8?q?=E6=9C=AA=E8=BF=9B=E8=A1=8C=E4=B8=8B=E4=B8=80=E8=BD=AEPK?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/common/manager/RandomPkManager.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/src/main/java/com/yunbao/common/manager/RandomPkManager.java b/common/src/main/java/com/yunbao/common/manager/RandomPkManager.java index 32fccb6c4..1fe11f400 100644 --- a/common/src/main/java/com/yunbao/common/manager/RandomPkManager.java +++ b/common/src/main/java/com/yunbao/common/manager/RandomPkManager.java @@ -121,6 +121,14 @@ public class RandomPkManager { .randomPK(new HttpCallback() { @Override public void onSuccess(String data) { + try { + Integer.parseInt(data);//检测返回的data是否为数字uid,不是的话开始下一轮 + } catch (Exception e) { + e.printStackTrace(); + status = PK_STATUS_DEFAULT; + nextPk(); + return; + } pkUid = data; if (debugUid != null) { pkUid = data = debugUid;