밤친구 v4.7.3版本的 MD5 值为:a58175795b36d9d722726efa7eb4c52a
以下内容为反编译后的 k.java 源代码,内容仅作参考
package ae;
import android.content.Context;
import android.os.SystemClock;
import java.io.IOException;
import java.io.Serializable;
import java.net.SocketTimeoutException;
import java.util.HashMap;
import java.util.List;
import org.json.JSONException;
import org.json.JSONObject;
public final class k implements Runnable {
public final h f676a;
public k(h hVar) {
this.f676a = hVar;
}
@Override
public final void run() {
int i;
int i2;
long j10;
long j11;
long j12;
long j13;
zd.b d4;
int i10;
JSONObject s10;
int i11;
h hVar = this.f676a;
try {
HashMap i12 = hVar.i();
if (i12 == null) {
return;
}
be.a.b("openSDK_LOG.ReportManager", "-->doReportVia, params: " + i12.toString());
Context context = ce.g.f3590a;
if (context == null) {
context = null;
}
int a10 = ce.h.b(context, null).a("Common_HttpRetryCount");
if (a10 == 0) {
i = 2;
} else {
i = a10;
}
long elapsedRealtime = SystemClock.elapsedRealtime();
int i13 = 0;
int i14 = 0;
while (true) {
int i15 = i13 + 1;
try {
try {
d4 = zd.a.a().d("https://appsupport.qq.com/cgi-bin/appstage/mstats_batch_report", i12);
i10 = d4.f18922c;
be.a.f("openSDK_LOG.ReportManager", "-->reportVia: statusCode " + i10);
s10 = ce.l.s(d4.a());
i2 = i15;
j13 = d4.f18923d;
} catch (Exception unused) {
j10 = 0;
i14 = -6;
i13 = i;
j11 = 0;
}
try {
try {
j12 = d4.f18924e;
} catch (JSONException unused2) {
j10 = 0;
j11 = 0;
i13 = i2;
i14 = -4;
if (i13 < i) {
}
}
} catch (SocketTimeoutException unused3) {
j10 = 0;
elapsedRealtime = SystemClock.elapsedRealtime();
i14 = -8;
j11 = j10;
i13 = i2;
if (i13 < i) {
}
} catch (IOException e10) {
e = e10;
j10 = 0;
i14 = ce.b.d(e);
j11 = j10;
i13 = i2;
if (i13 < i) {
}
}
} catch (SocketTimeoutException unused4) {
i2 = i15;
} catch (IOException e11) {
e = e11;
i2 = i15;
} catch (JSONException unused5) {
i2 = i15;
}
if (i10 != 200) {
i14 = i10;
break;
}
try {
i11 = s10.getInt("ret");
} catch (JSONException unused6) {
i11 = -4;
}
if (i11 == 0 || j12 != 0) {
break;
}
j10 = j12;
i13 = i2;
j11 = j13;
if (i13 < i) {
j13 = j11;
j12 = j10;
break;
}
}
long j14 = elapsedRealtime;
long j15 = j13;
long j16 = j12;
boolean z10 = false;
this.f676a.e("mapp_apptrace_sdk", j14, j15, j16, i14, null);
List<Serializable> list = hVar.f659c;
if (z10) {
g.a().s("report_via");
} else {
g.a().k("report_via", list);
}
list.clear();
be.a.f("openSDK_LOG.ReportManager", "-->doReportVia, uploadSuccess: " + z10 + " resultCode: " + i14);
} catch (Exception e12) {
be.a.d("openSDK_LOG.ReportManager", "-->doReportVia, exception in serial executor.", e12);
}
}
}