QQ浏览器 v12.2.3.7053版本的 MD5 值为:8285ab3059e5c8b521a264dfbc5c3685
以下内容为反编译后的 PollRequest.java 源代码,内容仅作参考
package com.tencent.mtt.log.plugin.cmdfetch;
import com.heytap.mcssdk.mode.CommandMessage;
import com.tencent.mtt.log.access.Logs;
import com.tencent.mtt.log.internal.http.BaseRequest;
import com.tencent.mtt.log.plugin.cmdfetch.PollResponse;
import com.tencent.mtt.log.utils.CollectionUtil;
import com.tencent.mtt.log.utils.StringUtil;
public class PollRequest extends BaseRequest {
String f67220b;
final int f67221c;
String f67222d;
String e;
String f;
public PollRequest() {
super("https://push.pgl.qq.com/public/pangolin2_push/poll");
this.f67221c = 0;
}
@Override
public String a() {
return "{\"projectName\":\"" + this.f67220b + "\",\"platform\":\"0\",\"guid\":\"" + this.f + "\",\"version\":\"" + this.f67222d + "\",\"" + CommandMessage.SDK_VERSION + "\":\"" + this.e + "\"}";
}
public boolean a(PollResponse pollResponse) {
if (pollResponse == null) {
Logs.e("LOGSDK_PollRequest", "isResultValid, response is null");
return false;
}
if (pollResponse.f67095a != 200) {
Logs.e("LOGSDK_PollRequest", "isResultValid, response.code is not ok: " + pollResponse.f67095a);
return false;
}
if (pollResponse.f67097c == 0) {
Logs.e("LOGSDK_PollRequest", "isResultValid, response.data is null");
return false;
}
if (!StringUtil.b(((PollResponse.Data) pollResponse.f67097c).f67223a) && StringUtil.a(((PollResponse.Data) pollResponse.f67097c).f67223a, this.f)) {
if (!CollectionUtil.a(((PollResponse.Data) pollResponse.f67097c).f67224b)) {
return true;
}
Logs.c("LOGSDK_PollRequest", "isResultValid, response.data.cmdList is empty");
return false;
}
Logs.e("LOGSDK_PollRequest", "isResultValid, response.data.guid is invalid: " + ((PollResponse.Data) pollResponse.f67097c).f67223a + ", should be: " + this.f);
return false;
}
public void c() {
b();
}
}