update 随机PK 修复返回uid为空时未进行下一轮PK问题
This commit is contained in:
parent
62c3cdcb30
commit
ae020b105a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user