update 随机PK 修复返回uid为空时未进行下一轮PK问题

This commit is contained in:
zlzw 2022-12-10 15:00:48 +08:00
parent 62c3cdcb30
commit ae020b105a

View File

@ -121,6 +121,14 @@ public class RandomPkManager {
.randomPK(new HttpCallback<String>() {
@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;