package ae; import com.meituan.robust.ChangeQuickRedirect; import com.meituan.robust.PatchProxy; import com.meituan.robust.PatchProxyResult; import com.shizhuang.duapp.common.helper.update.UpdateApi; import df.c; import io.reactivex.functions.Consumer; import qc.f; import rd.k; import tq.e; import tr.g; /* compiled from: DuCheckWork */ public class h extends e { public static ChangeQuickRedirect changeQuickRedirect; /* compiled from: DuCheckWork */ public class a implements Consumer<String> { public static ChangeQuickRedirect changeQuickRedirect; public a() { } /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // io.reactivex.functions.Consumer public void accept(String str) throws Exception { String str2 = str; if (!PatchProxy.proxy(new Object[]{str2}, this, changeQuickRedirect, false, 6308, new Class[]{String.class}, Void.TYPE).isSupported) { h.this.c(str2); } } } /* compiled from: DuCheckWork */ public class b implements Consumer<Throwable> { public static ChangeQuickRedirect changeQuickRedirect; public b() { } /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // io.reactivex.functions.Consumer public void accept(Throwable th2) throws Exception { if (!PatchProxy.proxy(new Object[]{th2}, this, changeQuickRedirect, false, 6309, new Class[]{Throwable.class}, Void.TYPE).isSupported) { h.this.c(""); } } } public static String f() { PatchProxyResult proxy = PatchProxy.proxy(new Object[0], null, changeQuickRedirect, true, 6307, new Class[0], String.class); if (proxy.isSupported) { return (String) proxy.result; } if (f.i()) { return "1e4e9a461f9b4fb09d6a4ae12c1eca83"; } return ("http://d2-app.dewu.com/".equals(f.f()) || "http://d1-app.dewu.com/".equals(f.f())) ? "88febb0de4b849b0ae34d465b3fd87dc" : "0a5ff8ea18dc4e76bb707c4cfdc1a45c"; } @Override // tq.e public void a() { if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 6306, new Class[0], Void.TYPE).isSupported) { UpdateApi updateApi = (UpdateApi) k.e().f().create(UpdateApi.class); StringBuilder h12 = a.f.h(""); h12.append(c.g(g.f38656a)); updateApi.getUpdateInfo(h12.toString(), c.e(g.f38656a), "android", f(), g.g()).subscribe(new a(), new b()); } } @Override // tq.e public boolean e() { PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 6305, new Class[0], Boolean.TYPE); if (proxy.isSupported) { return ((Boolean) proxy.result).booleanValue(); } return true; } }