正在查看: 新暖心缘 v8.1.1 应用的 i.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 新暖心缘 v8.1.1 应用的 i.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package w6;
import android.content.Context;
import android.os.Build;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import java.util.concurrent.TimeUnit;
import org.json.JSONException;
import org.json.JSONObject;
import x8.a0;
import x8.c0;
import x8.d0;
import x8.e0;
import x8.y;
public class i {
private static i f18190f;
private Context f18191a;
private a0 f18192b;
private List<c> f18193c = new ArrayList();
private TimerTask f18194d;
private Timer f18195e;
class a extends TimerTask {
a() {
}
@Override
public void run() {
i.this.f();
}
}
class b implements x8.f {
final c f18197a;
b(c cVar) {
this.f18197a = cVar;
}
public void onFailure(x8.e eVar, IOException iOException) {
this.f18197a.f18214p = false;
}
public void onResponse(x8.e eVar, e0 e0Var) throws IOException {
if (e0Var == null || !e0Var.v()) {
this.f18197a.f18214p = false;
return;
}
synchronized (i.this.f18193c) {
i.this.f18193c.remove(this.f18197a);
}
}
}
private i(Context context) {
this.f18194d = null;
this.f18191a = context;
a0.a z7 = new a0().z();
TimeUnit timeUnit = TimeUnit.SECONDS;
this.f18192b = z7.d(10L, timeUnit).R(10L, timeUnit).l0(10L, timeUnit).c();
this.f18194d = new a();
}
public static i d(Context context) {
if (f18190f == null) {
synchronized (i.class) {
if (f18190f == null) {
f18190f = new i(context);
}
}
}
return f18190f;
}
public synchronized void f() {
if (g.i(this.f18191a)) {
synchronized (this.f18193c) {
Iterator<c> it = this.f18193c.iterator();
while (it.hasNext()) {
c next = it.next();
if (next.f18213o >= 4) {
it.remove();
} else if (!next.f18214p) {
e(next);
}
}
}
}
}
public void c(c cVar) {
if (this.f18195e == null) {
Timer timer = new Timer(true);
this.f18195e = timer;
timer.schedule(this.f18194d, 0L, 10000L);
}
c cVar2 = new c(cVar);
synchronized (this.f18193c) {
if (this.f18193c.size() > 100) {
this.f18193c.remove(0);
}
this.f18193c.add(cVar2);
}
f();
}
public void e(c cVar) {
try {
JSONObject jSONObject = new JSONObject();
jSONObject.put("version", "1.0.8.2");
jSONObject.put("reqType", cVar.f18199a);
jSONObject.put("errCode", cVar.f18200b);
jSONObject.put("errMsg", cVar.f18201c);
jSONObject.put("reqTimeCost", cVar.f18203e);
jSONObject.put("reqServerIp", cVar.f18209k);
jSONObject.put("platform", 2000);
jSONObject.put("device", Build.MANUFACTURER + Build.MODEL);
jSONObject.put("osType", String.valueOf(Build.VERSION.SDK_INT));
jSONObject.put("netType", g.e(this.f18191a));
jSONObject.put("reqTime", cVar.f18202d);
jSONObject.put("reportId", cVar.f18210l);
jSONObject.put("uuid", g.c(this.f18191a));
jSONObject.put("reqKey", cVar.f18211m);
jSONObject.put("appId", cVar.f18208j);
jSONObject.put("fileSize", cVar.f18204f);
jSONObject.put("fileType", cVar.f18205g);
jSONObject.put("fileName", cVar.f18206h);
jSONObject.put("vodSessionKey", cVar.f18212n);
jSONObject.put("fileId", cVar.f18207i);
cVar.f18213o++;
cVar.f18214p = true;
String jSONObject2 = jSONObject.toString();
StringBuilder sb = new StringBuilder();
sb.append("reportUGCEvent->request url:");
sb.append("https://vodreport.qcloud.com/ugcupload");
sb.append(" body:");
sb.append(jSONObject2);
this.f18192b.A(new c0.a().x("https://vodreport.qcloud.com/ugcupload").n(d0.create(y.f("application/json"), jSONObject2)).b()).s(new b(cVar));
} catch (JSONException e8) {
e8.printStackTrace();
}
}
public static class c {
public int f18199a;
public int f18200b;
public String f18201c;
public long f18202d;
public long f18203e;
public long f18204f;
public String f18205g;
public String f18206h;
public String f18207i;
public int f18208j;
public String f18209k;
public String f18210l;
public String f18211m;
public String f18212n;
public int f18213o;
public boolean f18214p;
public c() {
this.f18199a = 0;
this.f18200b = 0;
this.f18201c = "";
this.f18202d = 0L;
this.f18203e = 0L;
this.f18204f = 0L;
this.f18205g = "";
this.f18206h = "";
this.f18207i = "";
this.f18208j = 0;
this.f18209k = "";
this.f18210l = "";
this.f18211m = "";
this.f18212n = "";
this.f18213o = 0;
this.f18214p = false;
}
public c(c cVar) {
this.f18199a = 0;
this.f18200b = 0;
this.f18201c = "";
this.f18202d = 0L;
this.f18203e = 0L;
this.f18204f = 0L;
this.f18205g = "";
this.f18206h = "";
this.f18207i = "";
this.f18208j = 0;
this.f18209k = "";
this.f18210l = "";
this.f18211m = "";
this.f18212n = "";
this.f18213o = 0;
this.f18214p = false;
this.f18199a = cVar.f18199a;
this.f18200b = cVar.f18200b;
this.f18201c = cVar.f18201c;
this.f18202d = cVar.f18202d;
this.f18203e = cVar.f18203e;
this.f18204f = cVar.f18204f;
this.f18205g = cVar.f18205g;
this.f18206h = cVar.f18206h;
this.f18208j = cVar.f18208j;
this.f18209k = cVar.f18209k;
this.f18210l = cVar.f18210l;
this.f18211m = cVar.f18211m;
this.f18212n = cVar.f18212n;
this.f18213o = 0;
this.f18214p = false;
}
}
}