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;