Initial commit
This commit is contained in:
24
sources/com/tencent/wxop/stat/event/EventType.java
Normal file
24
sources/com/tencent/wxop/stat/event/EventType.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package com.tencent.wxop.stat.event;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public enum EventType {
|
||||
PAGE_VIEW(1),
|
||||
SESSION_ENV(2),
|
||||
ERROR(3),
|
||||
CUSTOM(1000),
|
||||
ADDITION(1001),
|
||||
MONITOR_STAT(1002),
|
||||
MTA_GAME_USER(1003),
|
||||
NETWORK_MONITOR(1004),
|
||||
NETWORK_DETECTOR(1005);
|
||||
|
||||
private int a;
|
||||
|
||||
EventType(int i) {
|
||||
this.a = i;
|
||||
}
|
||||
|
||||
public final int a() {
|
||||
return this.a;
|
||||
}
|
||||
}
|
30
sources/com/tencent/wxop/stat/event/a.java
Normal file
30
sources/com/tencent/wxop/stat/event/a.java
Normal file
@@ -0,0 +1,30 @@
|
||||
package com.tencent.wxop.stat.event;
|
||||
|
||||
import android.content.Context;
|
||||
import com.tencent.wxop.stat.StatAccount;
|
||||
import com.tencent.wxop.stat.StatSpecifyReportedInfo;
|
||||
import com.tencent.wxop.stat.common.r;
|
||||
import org.json.JSONObject;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class a extends e {
|
||||
private StatAccount a;
|
||||
|
||||
public a(Context context, int i, StatAccount statAccount, StatSpecifyReportedInfo statSpecifyReportedInfo) {
|
||||
super(context, i, statSpecifyReportedInfo);
|
||||
this.a = null;
|
||||
this.a = statAccount;
|
||||
}
|
||||
|
||||
@Override // com.tencent.wxop.stat.event.e
|
||||
public EventType a() {
|
||||
return EventType.ADDITION;
|
||||
}
|
||||
|
||||
@Override // com.tencent.wxop.stat.event.e
|
||||
public boolean a(JSONObject jSONObject) {
|
||||
r.a(jSONObject, "qq", this.a.getAccount());
|
||||
jSONObject.put("acc", this.a.toJsonString());
|
||||
return true;
|
||||
}
|
||||
}
|
75
sources/com/tencent/wxop/stat/event/b.java
Normal file
75
sources/com/tencent/wxop/stat/event/b.java
Normal file
@@ -0,0 +1,75 @@
|
||||
package com.tencent.wxop.stat.event;
|
||||
|
||||
import android.content.Context;
|
||||
import com.tencent.wxop.stat.StatServiceImpl;
|
||||
import com.tencent.wxop.stat.StatSpecifyReportedInfo;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class b extends e {
|
||||
protected c a;
|
||||
private long m;
|
||||
|
||||
public b(Context context, int i, String str, StatSpecifyReportedInfo statSpecifyReportedInfo) {
|
||||
super(context, i, statSpecifyReportedInfo);
|
||||
this.a = new c();
|
||||
this.m = -1L;
|
||||
this.a.a = str;
|
||||
}
|
||||
|
||||
private void h() {
|
||||
Properties commonKeyValueForKVEvent;
|
||||
String str = this.a.a;
|
||||
if (str == null || (commonKeyValueForKVEvent = StatServiceImpl.getCommonKeyValueForKVEvent(str)) == null || commonKeyValueForKVEvent.size() <= 0) {
|
||||
return;
|
||||
}
|
||||
JSONObject jSONObject = this.a.c;
|
||||
if (jSONObject == null || jSONObject.length() == 0) {
|
||||
this.a.c = new JSONObject(commonKeyValueForKVEvent);
|
||||
return;
|
||||
}
|
||||
for (Map.Entry entry : commonKeyValueForKVEvent.entrySet()) {
|
||||
try {
|
||||
this.a.c.put(entry.getKey().toString(), entry.getValue());
|
||||
} catch (JSONException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.tencent.wxop.stat.event.e
|
||||
public EventType a() {
|
||||
return EventType.CUSTOM;
|
||||
}
|
||||
|
||||
public void a(long j) {
|
||||
this.m = j;
|
||||
}
|
||||
|
||||
@Override // com.tencent.wxop.stat.event.e
|
||||
public boolean a(JSONObject jSONObject) {
|
||||
String str;
|
||||
jSONObject.put("ei", this.a.a);
|
||||
long j = this.m;
|
||||
if (j > 0) {
|
||||
jSONObject.put("du", j);
|
||||
}
|
||||
Object obj = this.a.b;
|
||||
if (obj == null) {
|
||||
h();
|
||||
obj = this.a.c;
|
||||
str = "kv";
|
||||
} else {
|
||||
str = "ar";
|
||||
}
|
||||
jSONObject.put(str, obj);
|
||||
return true;
|
||||
}
|
||||
|
||||
public c b() {
|
||||
return this.a;
|
||||
}
|
||||
}
|
67
sources/com/tencent/wxop/stat/event/c.java
Normal file
67
sources/com/tencent/wxop/stat/event/c.java
Normal file
@@ -0,0 +1,67 @@
|
||||
package com.tencent.wxop.stat.event;
|
||||
|
||||
import java.util.Properties;
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONObject;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class c {
|
||||
public String a;
|
||||
public JSONArray b;
|
||||
public JSONObject c;
|
||||
|
||||
public c() {
|
||||
this.c = null;
|
||||
}
|
||||
|
||||
public c(String str, String[] strArr, Properties properties) {
|
||||
JSONObject jSONObject;
|
||||
this.c = null;
|
||||
this.a = str;
|
||||
if (properties != null) {
|
||||
jSONObject = new JSONObject(properties);
|
||||
} else {
|
||||
if (strArr != null) {
|
||||
this.b = new JSONArray();
|
||||
for (String str2 : strArr) {
|
||||
this.b.put(str2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
jSONObject = new JSONObject();
|
||||
}
|
||||
this.c = jSONObject;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (obj == null) {
|
||||
return false;
|
||||
}
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj instanceof c) {
|
||||
return toString().equals(((c) obj).toString());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return toString().hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder(32);
|
||||
sb.append(this.a);
|
||||
sb.append(",");
|
||||
JSONArray jSONArray = this.b;
|
||||
if (jSONArray != null) {
|
||||
sb.append(jSONArray.toString());
|
||||
}
|
||||
JSONObject jSONObject = this.c;
|
||||
if (jSONObject != null) {
|
||||
sb.append(jSONObject.toString());
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
76
sources/com/tencent/wxop/stat/event/d.java
Normal file
76
sources/com/tencent/wxop/stat/event/d.java
Normal file
@@ -0,0 +1,76 @@
|
||||
package com.tencent.wxop.stat.event;
|
||||
|
||||
import android.content.Context;
|
||||
import com.tencent.wxop.stat.StatConfig;
|
||||
import com.tencent.wxop.stat.StatSpecifyReportedInfo;
|
||||
import com.tencent.wxop.stat.common.r;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.StringWriter;
|
||||
import org.json.JSONObject;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class d extends e {
|
||||
private String a;
|
||||
private int m;
|
||||
private int n;
|
||||
private Thread o;
|
||||
|
||||
public d(Context context, int i, int i2, Throwable th, StatSpecifyReportedInfo statSpecifyReportedInfo) {
|
||||
super(context, i, statSpecifyReportedInfo);
|
||||
this.n = 100;
|
||||
this.o = null;
|
||||
a(i2, th);
|
||||
}
|
||||
|
||||
public d(Context context, int i, int i2, Throwable th, Thread thread, StatSpecifyReportedInfo statSpecifyReportedInfo) {
|
||||
super(context, i, statSpecifyReportedInfo);
|
||||
this.n = 100;
|
||||
this.o = null;
|
||||
a(i2, th);
|
||||
this.o = thread;
|
||||
}
|
||||
|
||||
public d(Context context, int i, String str, int i2, int i3, Thread thread, StatSpecifyReportedInfo statSpecifyReportedInfo) {
|
||||
super(context, i, statSpecifyReportedInfo);
|
||||
this.n = 100;
|
||||
this.o = null;
|
||||
if (str != null) {
|
||||
i3 = i3 <= 0 ? StatConfig.getMaxReportEventLength() : i3;
|
||||
if (str.length() <= i3) {
|
||||
this.a = str;
|
||||
} else {
|
||||
this.a = str.substring(0, i3);
|
||||
}
|
||||
}
|
||||
this.o = thread;
|
||||
this.m = i2;
|
||||
}
|
||||
|
||||
private void a(int i, Throwable th) {
|
||||
if (th != null) {
|
||||
StringWriter stringWriter = new StringWriter();
|
||||
PrintWriter printWriter = new PrintWriter(stringWriter);
|
||||
th.printStackTrace(printWriter);
|
||||
this.a = stringWriter.toString();
|
||||
this.m = i;
|
||||
printWriter.close();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.tencent.wxop.stat.event.e
|
||||
public EventType a() {
|
||||
return EventType.ERROR;
|
||||
}
|
||||
|
||||
@Override // com.tencent.wxop.stat.event.e
|
||||
public boolean a(JSONObject jSONObject) {
|
||||
r.a(jSONObject, "er", this.a);
|
||||
jSONObject.put("ea", this.m);
|
||||
int i = this.m;
|
||||
if (i != 2 && i != 3) {
|
||||
return true;
|
||||
}
|
||||
new com.tencent.wxop.stat.common.b(this.l).a(jSONObject, this.o);
|
||||
return true;
|
||||
}
|
||||
}
|
130
sources/com/tencent/wxop/stat/event/e.java
Normal file
130
sources/com/tencent/wxop/stat/event/e.java
Normal file
@@ -0,0 +1,130 @@
|
||||
package com.tencent.wxop.stat.event;
|
||||
|
||||
import android.content.Context;
|
||||
import com.tencent.wxop.stat.StatConfig;
|
||||
import com.tencent.wxop.stat.StatSpecifyReportedInfo;
|
||||
import com.tencent.wxop.stat.au;
|
||||
import com.tencent.wxop.stat.common.l;
|
||||
import com.tencent.wxop.stat.common.r;
|
||||
import org.json.JSONObject;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class e {
|
||||
protected static String j;
|
||||
private StatSpecifyReportedInfo a;
|
||||
protected String b;
|
||||
protected long c = System.currentTimeMillis() / 1000;
|
||||
protected int d;
|
||||
protected com.tencent.wxop.stat.common.a e;
|
||||
protected int f;
|
||||
protected String g;
|
||||
protected String h;
|
||||
protected String i;
|
||||
protected boolean k;
|
||||
protected Context l;
|
||||
|
||||
e(Context context, int i, StatSpecifyReportedInfo statSpecifyReportedInfo) {
|
||||
this.b = null;
|
||||
this.e = null;
|
||||
this.g = null;
|
||||
this.h = null;
|
||||
this.i = null;
|
||||
this.k = false;
|
||||
this.a = null;
|
||||
this.l = context;
|
||||
this.d = i;
|
||||
this.h = StatConfig.getInstallChannel(context);
|
||||
this.i = l.h(context);
|
||||
this.b = StatConfig.getAppKey(context);
|
||||
if (statSpecifyReportedInfo != null) {
|
||||
this.a = statSpecifyReportedInfo;
|
||||
if (l.c(statSpecifyReportedInfo.getAppKey())) {
|
||||
this.b = statSpecifyReportedInfo.getAppKey();
|
||||
}
|
||||
if (l.c(statSpecifyReportedInfo.getInstallChannel())) {
|
||||
this.h = statSpecifyReportedInfo.getInstallChannel();
|
||||
}
|
||||
if (l.c(statSpecifyReportedInfo.getVersion())) {
|
||||
this.i = statSpecifyReportedInfo.getVersion();
|
||||
}
|
||||
this.k = statSpecifyReportedInfo.isImportant();
|
||||
}
|
||||
this.g = StatConfig.getCustomUserId(context);
|
||||
this.e = au.a(context).b(context);
|
||||
EventType a = a();
|
||||
EventType eventType = EventType.NETWORK_DETECTOR;
|
||||
this.f = a != eventType ? l.q(context).intValue() : -eventType.a();
|
||||
if (com.tencent.a.a.a.a.h.b(j)) {
|
||||
return;
|
||||
}
|
||||
String localMidOnly = StatConfig.getLocalMidOnly(context);
|
||||
j = localMidOnly;
|
||||
if (l.c(localMidOnly)) {
|
||||
return;
|
||||
}
|
||||
j = "0";
|
||||
}
|
||||
|
||||
public abstract EventType a();
|
||||
|
||||
public abstract boolean a(JSONObject jSONObject);
|
||||
|
||||
public boolean b(JSONObject jSONObject) {
|
||||
try {
|
||||
r.a(jSONObject, "ky", this.b);
|
||||
jSONObject.put("et", a().a());
|
||||
if (this.e != null) {
|
||||
jSONObject.put("ui", this.e.b());
|
||||
r.a(jSONObject, "mc", this.e.c());
|
||||
int d = this.e.d();
|
||||
jSONObject.put("ut", d);
|
||||
if (d == 0 && l.u(this.l) == 1) {
|
||||
jSONObject.put("ia", 1);
|
||||
}
|
||||
}
|
||||
r.a(jSONObject, "cui", this.g);
|
||||
if (a() != EventType.SESSION_ENV) {
|
||||
r.a(jSONObject, "av", this.i);
|
||||
r.a(jSONObject, "ch", this.h);
|
||||
}
|
||||
if (this.k) {
|
||||
jSONObject.put("impt", 1);
|
||||
}
|
||||
r.a(jSONObject, "mid", j);
|
||||
jSONObject.put("cch", "wxop");
|
||||
jSONObject.put("idx", this.f);
|
||||
jSONObject.put("si", this.d);
|
||||
jSONObject.put("ts", this.c);
|
||||
jSONObject.put("dts", l.a(this.l, false));
|
||||
return a(jSONObject);
|
||||
} catch (Throwable unused) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public long c() {
|
||||
return this.c;
|
||||
}
|
||||
|
||||
public StatSpecifyReportedInfo d() {
|
||||
return this.a;
|
||||
}
|
||||
|
||||
public Context e() {
|
||||
return this.l;
|
||||
}
|
||||
|
||||
public boolean f() {
|
||||
return this.k;
|
||||
}
|
||||
|
||||
public String g() {
|
||||
try {
|
||||
JSONObject jSONObject = new JSONObject();
|
||||
b(jSONObject);
|
||||
return jSONObject.toString();
|
||||
} catch (Throwable unused) {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
35
sources/com/tencent/wxop/stat/event/f.java
Normal file
35
sources/com/tencent/wxop/stat/event/f.java
Normal file
@@ -0,0 +1,35 @@
|
||||
package com.tencent.wxop.stat.event;
|
||||
|
||||
import android.content.Context;
|
||||
import com.tencent.wxop.stat.StatGameUser;
|
||||
import com.tencent.wxop.stat.StatSpecifyReportedInfo;
|
||||
import com.tencent.wxop.stat.common.r;
|
||||
import org.json.JSONObject;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class f extends e {
|
||||
private StatGameUser a;
|
||||
|
||||
public f(Context context, int i, StatGameUser statGameUser, StatSpecifyReportedInfo statSpecifyReportedInfo) {
|
||||
super(context, i, statSpecifyReportedInfo);
|
||||
this.a = null;
|
||||
this.a = statGameUser.m18clone();
|
||||
}
|
||||
|
||||
@Override // com.tencent.wxop.stat.event.e
|
||||
public EventType a() {
|
||||
return EventType.MTA_GAME_USER;
|
||||
}
|
||||
|
||||
@Override // com.tencent.wxop.stat.event.e
|
||||
public boolean a(JSONObject jSONObject) {
|
||||
StatGameUser statGameUser = this.a;
|
||||
if (statGameUser == null) {
|
||||
return false;
|
||||
}
|
||||
r.a(jSONObject, "wod", statGameUser.getWorldName());
|
||||
r.a(jSONObject, "gid", this.a.getAccount());
|
||||
r.a(jSONObject, "lev", this.a.getLevel());
|
||||
return true;
|
||||
}
|
||||
}
|
51
sources/com/tencent/wxop/stat/event/g.java
Normal file
51
sources/com/tencent/wxop/stat/event/g.java
Normal file
@@ -0,0 +1,51 @@
|
||||
package com.tencent.wxop.stat.event;
|
||||
|
||||
import android.content.Context;
|
||||
import com.tencent.wxop.stat.StatAppMonitor;
|
||||
import com.tencent.wxop.stat.StatSpecifyReportedInfo;
|
||||
import com.tencent.wxop.stat.common.l;
|
||||
import com.tencent.wxop.stat.common.r;
|
||||
import org.json.JSONObject;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class g extends e {
|
||||
private static String m;
|
||||
private static String n;
|
||||
private StatAppMonitor a;
|
||||
|
||||
public g(Context context, int i, StatAppMonitor statAppMonitor, StatSpecifyReportedInfo statSpecifyReportedInfo) {
|
||||
super(context, i, statSpecifyReportedInfo);
|
||||
this.a = null;
|
||||
this.a = statAppMonitor.m17clone();
|
||||
}
|
||||
|
||||
@Override // com.tencent.wxop.stat.event.e
|
||||
public EventType a() {
|
||||
return EventType.MONITOR_STAT;
|
||||
}
|
||||
|
||||
@Override // com.tencent.wxop.stat.event.e
|
||||
public boolean a(JSONObject jSONObject) {
|
||||
StatAppMonitor statAppMonitor = this.a;
|
||||
if (statAppMonitor == null) {
|
||||
return false;
|
||||
}
|
||||
jSONObject.put("na", statAppMonitor.getInterfaceName());
|
||||
jSONObject.put("rq", this.a.getReqSize());
|
||||
jSONObject.put("rp", this.a.getRespSize());
|
||||
jSONObject.put("rt", this.a.getResultType());
|
||||
jSONObject.put("tm", this.a.getMillisecondsConsume());
|
||||
jSONObject.put("rc", this.a.getReturnCode());
|
||||
jSONObject.put("sp", this.a.getSampling());
|
||||
if (n == null) {
|
||||
n = l.l(this.l);
|
||||
}
|
||||
r.a(jSONObject, "av", n);
|
||||
if (m == null) {
|
||||
m = l.g(this.l);
|
||||
}
|
||||
r.a(jSONObject, "op", m);
|
||||
jSONObject.put("cn", com.tencent.wxop.stat.a.a(this.l).b());
|
||||
return true;
|
||||
}
|
||||
}
|
33
sources/com/tencent/wxop/stat/event/h.java
Normal file
33
sources/com/tencent/wxop/stat/event/h.java
Normal file
@@ -0,0 +1,33 @@
|
||||
package com.tencent.wxop.stat.event;
|
||||
|
||||
import android.content.Context;
|
||||
import com.tencent.wxop.stat.StatConfig;
|
||||
import com.tencent.wxop.stat.StatSpecifyReportedInfo;
|
||||
import com.tencent.wxop.stat.common.r;
|
||||
import org.json.JSONObject;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class h extends e {
|
||||
public static final StatSpecifyReportedInfo a;
|
||||
|
||||
static {
|
||||
StatSpecifyReportedInfo statSpecifyReportedInfo = new StatSpecifyReportedInfo();
|
||||
a = statSpecifyReportedInfo;
|
||||
statSpecifyReportedInfo.setAppKey("A9VH9B8L4GX4");
|
||||
}
|
||||
|
||||
public h(Context context) {
|
||||
super(context, 0, a);
|
||||
}
|
||||
|
||||
@Override // com.tencent.wxop.stat.event.e
|
||||
public EventType a() {
|
||||
return EventType.NETWORK_DETECTOR;
|
||||
}
|
||||
|
||||
@Override // com.tencent.wxop.stat.event.e
|
||||
public boolean a(JSONObject jSONObject) {
|
||||
r.a(jSONObject, "actky", StatConfig.getAppKey(this.l));
|
||||
return true;
|
||||
}
|
||||
}
|
41
sources/com/tencent/wxop/stat/event/i.java
Normal file
41
sources/com/tencent/wxop/stat/event/i.java
Normal file
@@ -0,0 +1,41 @@
|
||||
package com.tencent.wxop.stat.event;
|
||||
|
||||
import android.content.Context;
|
||||
import com.tencent.wxop.stat.StatSpecifyReportedInfo;
|
||||
import com.tencent.wxop.stat.common.l;
|
||||
import com.tencent.wxop.stat.common.r;
|
||||
import org.json.JSONObject;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class i extends e {
|
||||
private static String a;
|
||||
private String m;
|
||||
private String n;
|
||||
|
||||
public i(Context context, int i, StatSpecifyReportedInfo statSpecifyReportedInfo) {
|
||||
super(context, i, statSpecifyReportedInfo);
|
||||
this.m = null;
|
||||
this.n = null;
|
||||
this.m = com.tencent.wxop.stat.a.a(context).b();
|
||||
if (a == null) {
|
||||
a = l.g(context);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.tencent.wxop.stat.event.e
|
||||
public EventType a() {
|
||||
return EventType.NETWORK_MONITOR;
|
||||
}
|
||||
|
||||
public void a(String str) {
|
||||
this.n = str;
|
||||
}
|
||||
|
||||
@Override // com.tencent.wxop.stat.event.e
|
||||
public boolean a(JSONObject jSONObject) {
|
||||
r.a(jSONObject, "op", a);
|
||||
r.a(jSONObject, "cn", this.m);
|
||||
jSONObject.put("sp", this.n);
|
||||
return true;
|
||||
}
|
||||
}
|
38
sources/com/tencent/wxop/stat/event/j.java
Normal file
38
sources/com/tencent/wxop/stat/event/j.java
Normal file
@@ -0,0 +1,38 @@
|
||||
package com.tencent.wxop.stat.event;
|
||||
|
||||
import android.content.Context;
|
||||
import com.tencent.wxop.stat.StatSpecifyReportedInfo;
|
||||
import com.tencent.wxop.stat.common.r;
|
||||
import org.json.JSONObject;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class j extends e {
|
||||
Long a;
|
||||
String m;
|
||||
String n;
|
||||
|
||||
public j(Context context, String str, String str2, int i, Long l, StatSpecifyReportedInfo statSpecifyReportedInfo) {
|
||||
super(context, i, statSpecifyReportedInfo);
|
||||
this.a = null;
|
||||
this.n = str;
|
||||
this.m = str2;
|
||||
this.a = l;
|
||||
}
|
||||
|
||||
@Override // com.tencent.wxop.stat.event.e
|
||||
public EventType a() {
|
||||
return EventType.PAGE_VIEW;
|
||||
}
|
||||
|
||||
@Override // com.tencent.wxop.stat.event.e
|
||||
public boolean a(JSONObject jSONObject) {
|
||||
r.a(jSONObject, "pi", this.m);
|
||||
r.a(jSONObject, "rf", this.n);
|
||||
Long l = this.a;
|
||||
if (l == null) {
|
||||
return true;
|
||||
}
|
||||
jSONObject.put("du", l);
|
||||
return true;
|
||||
}
|
||||
}
|
41
sources/com/tencent/wxop/stat/event/k.java
Normal file
41
sources/com/tencent/wxop/stat/event/k.java
Normal file
@@ -0,0 +1,41 @@
|
||||
package com.tencent.wxop.stat.event;
|
||||
|
||||
import android.content.Context;
|
||||
import com.tencent.wxop.stat.StatSpecifyReportedInfo;
|
||||
import com.tencent.wxop.stat.common.l;
|
||||
import org.json.JSONObject;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class k extends e {
|
||||
private com.tencent.wxop.stat.common.b a;
|
||||
private JSONObject m;
|
||||
|
||||
public k(Context context, int i, JSONObject jSONObject, StatSpecifyReportedInfo statSpecifyReportedInfo) {
|
||||
super(context, i, statSpecifyReportedInfo);
|
||||
this.m = null;
|
||||
this.a = new com.tencent.wxop.stat.common.b(context);
|
||||
this.m = jSONObject;
|
||||
}
|
||||
|
||||
@Override // com.tencent.wxop.stat.event.e
|
||||
public EventType a() {
|
||||
return EventType.SESSION_ENV;
|
||||
}
|
||||
|
||||
@Override // com.tencent.wxop.stat.event.e
|
||||
public boolean a(JSONObject jSONObject) {
|
||||
com.tencent.wxop.stat.common.a aVar = this.e;
|
||||
if (aVar != null) {
|
||||
jSONObject.put("ut", aVar.d());
|
||||
}
|
||||
JSONObject jSONObject2 = this.m;
|
||||
if (jSONObject2 != null) {
|
||||
jSONObject.put("cfg", jSONObject2);
|
||||
}
|
||||
if (l.w(this.l)) {
|
||||
jSONObject.put("ncts", 1);
|
||||
}
|
||||
this.a.a(jSONObject, (Thread) null);
|
||||
return true;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user