Aqara Home v2.4.1版本的 MD5 值为:529779ac2bc0131db52a1fc3098d2b35
以下内容为反编译后的 d.java 源代码,内容仅作参考
package k.g0.a.a.a.f.b;
import com.ximalaya.ting.android.opensdk.model.advertis.AdvertisList;
import java.util.Map;
import k.g0.a.a.a.c.c;
import k.g0.a.a.a.c.h;
import k.g0.a.a.a.c.j;
import k.g0.a.a.a.d.i;
import k.g0.a.a.a.f.b.f;
import okhttp3.Response;
import org.json.JSONObject;
public class d implements k.g0.a.a.a.f.b.a {
public static d b;
public boolean a = false;
public class b implements c.s1<e> {
public b() {
}
@Override
public e a(String str) throws Exception {
return new e(str);
}
}
public class c implements h<AdvertisList> {
public final h a;
public c(h hVar) {
this.a = hVar;
}
@Override
public void onSuccess(AdvertisList advertisList) {
this.a.onSuccess(advertisList);
}
@Override
public void a(int i2, String str) {
this.a.a(i2, str);
}
}
public class C0329d implements i {
public C0329d() {
}
@Override
public void a(int i2, String str) {
}
@Override
public void a(Response response) {
}
}
public static class e extends j {
public String a;
public e(String str) {
this.a = str;
}
public String a() {
return this.a;
}
public void a(String str) {
this.a = str;
}
}
@Override
public void release() {
b = null;
}
public static d a() {
if (b == null) {
synchronized (d.class) {
if (b == null) {
b = new d();
}
}
}
return b;
}
@Override
public void a(Map<String, String> map, h<AdvertisList> hVar) {
if (!this.a) {
k.g0.a.a.a.c.c.a("http://api.ximalaya.com/openapi-gateway-app/app/config", null, new a(map, hVar), new b());
} else {
k.g0.a.a.a.c.c.a(map, new c(hVar));
}
}
public class a implements h<e> {
public final Map a;
public final h b;
public class C0328a implements h<AdvertisList> {
public C0328a() {
}
@Override
public void onSuccess(AdvertisList advertisList) {
a.this.b.onSuccess(advertisList);
}
@Override
public void a(int i2, String str) {
a.this.b.a(i2, str);
}
}
public a(Map map, h hVar) {
this.a = map;
this.b = hVar;
}
@Override
public void onSuccess(e eVar) {
if (eVar != null) {
try {
JSONObject jSONObject = new JSONObject(eVar.a());
if (!jSONObject.optBoolean("ea", true) && jSONObject.optString("app_name", "").equals(k.g0.a.a.a.c.c.u().m())) {
this.b.onSuccess(null);
}
k.g0.a.a.a.c.c.a(this.a, new C0328a());
} catch (Exception e2) {
e2.printStackTrace();
this.b.onSuccess(null);
}
} else {
this.b.onSuccess(null);
}
d.this.a = true;
}
@Override
public void a(int i2, String str) {
d.this.a = true;
this.b.onSuccess(null);
}
}
@Override
public void a(f.e eVar) {
g gVar = new g();
gVar.c(System.currentTimeMillis());
gVar.d(eVar.a.getDataId());
gVar.a(eVar.c.getAdvertisList().get(0).getAdid());
gVar.b(eVar.c.getResponseId());
gVar.f(k.g0.a.a.a.c.c.u().o());
gVar.c(eVar.c.getAdvertisList().get(0).getLinkUrl());
try {
gVar.b(k.g0.a.a.a.c.c.u().c());
k.g0.a.a.a.d.b.a(k.g0.a.a.a.d.a.a(k.g0.a.a.a.b.b.X0, new k.g0.a.a.a.f.b.e(gVar).a().getBytes()).build(), new C0329d());
} catch (k.g0.a.a.a.d.j unused) {
}
}
}