QQ浏览器 v12.2.3.7053版本的 MD5 值为:8285ab3059e5c8b521a264dfbc5c3685
以下内容为反编译后的 AVBaseReport.java 源代码,内容仅作参考
package com.tencent.ilivesdk.avpreloadplayerservice.report;
import com.huawei.hms.framework.common.ContainerUtils;
import com.tencent.falco.base.libapi.http.HttpInterface;
import com.tencent.falco.base.libapi.http.HttpResponse;
import com.tencent.falco.base.libapi.log.LogInterface;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONObject;
public abstract class AVBaseReport implements AVReportInterface {
HttpInterface f12624b;
protected Map<String, String> f12623a = new HashMap();
private LogInterface f12625c = null;
private String c() {
StringBuilder sb = new StringBuilder();
sb.append("_dc=");
sb.append(Math.random());
for (Map.Entry<String, String> entry : this.f12623a.entrySet()) {
sb.append(ContainerUtils.FIELD_DELIMITER);
sb.append(entry.getKey());
sb.append(ContainerUtils.KEY_VALUE_DELIMITER);
sb.append(entry.getValue() == null ? " " : entry.getValue());
}
String str = "https://h.trace.qq.com/kv?" + sb.toString();
LogInterface logInterface = this.f12625c;
if (logInterface != null) {
logInterface.b("AVReport", "AVReport | send=" + str, new Object[0]);
}
return str;
}
@Override
public AVReportInterface a(String str, double d2) {
this.f12623a.put(str, String.valueOf(d2));
return this;
}
@Override
public AVReportInterface a(String str, int i) {
this.f12623a.put(str, String.valueOf(i));
return this;
}
@Override
public AVReportInterface a(String str, long j) {
this.f12623a.put(str, String.valueOf(j));
return this;
}
@Override
public AVReportInterface a(String str, String str2) {
this.f12623a.put(str, String.valueOf(str2));
return this;
}
@Override
public AVReportInterface a(Map<String, String> map) {
this.f12623a.putAll(map);
return this;
}
public abstract void a();
@Override
public void a(HttpInterface httpInterface) {
this.f12624b = httpInterface;
}
public void a(final LogInterface logInterface) {
this.f12625c = logInterface;
this.f12624b.a(new HttpInterface.HttpComponentAdapter() {
@Override
public LogInterface a() {
return logInterface;
}
});
a();
}
@Override
public void b() {
c();
this.f12624b.b("https://h.trace.qq.com/kv", this.f12623a, new HttpResponse() {
@Override
public void a(int i, JSONObject jSONObject) {
if (AVBaseReport.this.f12625c != null) {
AVBaseReport.this.f12625c.c("AVReport", "report result code=" + i, new Object[0]);
}
}
});
}
}