正在查看: 万能钥匙 v1.1.23 应用的 C1502a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 万能钥匙 v1.1.23 应用的 C1502a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package lg0;
import ah0.l;
import ah0.q;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import hl0.e;
import hl0.f;
import hl0.j;
import java.io.IOException;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.p;
import sk0.a0;
import sk0.c0;
import sk0.d0;
import sk0.f0;
import sk0.y;
import sk0.z;
@Metadata(d1 = {"\u0000Z\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\t\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0003\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0000\u0018\u0000 \u00172\u00020\u0001:\u0001\u0013B\u0007¢\u0006\u0004\b\u0002\u0010\u0003Je\u0010\u0010\u001a\u00020\u000b2\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u00062\b\u0010\b\u001a\u0004\u0018\u00010\u00062$\b\u0002\u0010\f\u001a\u001e\u0012\u0006\u0012\u0004\u0018\u00010\u0006\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\t2\u0016\b\u0002\u0010\u000f\u001a\u0010\u0012\u0004\u0012\u00020\u000e\u0012\u0004\u0012\u00020\u000b\u0018\u00010\r¢\u0006\u0004\b\u0010\u0010\u0011JQ\u0010\u0013\u001a\u0004\u0018\u00010\u00122\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u00062\b\u0010\b\u001a\u0004\u0018\u00010\u00062$\b\u0002\u0010\f\u001a\u001e\u0012\u0006\u0012\u0004\u0018\u00010\u0006\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\tH\u0002¢\u0006\u0004\b\u0013\u0010\u0014J\u0017\u0010\u0017\u001a\u00020\u00162\u0006\u0010\u0015\u001a\u00020\u0012H\u0002¢\u0006\u0004\b\u0017\u0010\u0018J?\u0010\u001e\u001a\u00020\u000b2\u0006\u0010\u0019\u001a\u00020\u00162\u0012\u0010\u001b\u001a\u000e\u0012\u0004\u0012\u00020\u001a\u0012\u0004\u0012\u00020\u000b0\r2\u0012\u0010\u001d\u001a\u000e\u0012\u0004\u0012\u00020\u001c\u0012\u0004\u0012\u00020\u000b0\rH\u0002¢\u0006\u0004\b\u001e\u0010\u001fR\u0014\u0010\"\u001a\u00020 8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0013\u0010!¨\u0006#"}, d2 = {"Lca0/a;", "", "<init>", "()V", "Lca0/e;", "uploadSource", "", "token", "key", "Lkotlin/Function3;", "", "Llg0/e0;", "progress", "Lkotlin/Function1;", "Lca0/d;", "callback", "d", "(Lca0/e;Ljava/lang/String;Ljava/lang/String;Lah0/q;Lah0/l;)V", "Lsk0/d0;", "a", "(Lca0/e;Ljava/lang/String;Ljava/lang/String;Lah0/q;)Lsk0/d0;", "requestBody", "Lsk0/c0;", "b", "(Lsk0/d0;)Lsk0/c0;", "request", "", "onFailed", "Lsk0/e0;", "onResponse", "c", "(Lsk0/c0;Lah0/l;Lah0/l;)V", "Lsk0/a0;", "Lsk0/a0;", "client", "svc-upload_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class C1502a {
public static ChangeQuickRedirect changeQuickRedirect;
public final a0 client = new a0();
@Metadata(d1 = {"\u0000'\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\t\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u000f\u0010\u0003\u001a\u00020\u0002H\u0016¢\u0006\u0004\b\u0003\u0010\u0004J\u000f\u0010\u0006\u001a\u00020\u0005H\u0016¢\u0006\u0004\b\u0006\u0010\u0007J\u0017\u0010\u000b\u001a\u00020\n2\u0006\u0010\t\u001a\u00020\bH\u0016¢\u0006\u0004\b\u000b\u0010\f¨\u0006\r"}, d2 = {"ca0/a$b", "Lsk0/d0;", "Lsk0/y;", "b", "()Lsk0/y;", "", "a", "()J", "Lhl0/f;", "sink", "Llg0/e0;", "i", "(Lhl0/f;)V", "svc-upload_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class b extends d0 {
public static ChangeQuickRedirect changeQuickRedirect;
public final z b;
public final q<String, Long, Long, lg0.e0> c;
public final String d;
@Metadata(d1 = {"\u0000\u001d\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0002\b\n*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u001f\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0016¢\u0006\u0004\b\u0007\u0010\bR\"\u0010\u000f\u001a\u00020\u00048\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\t\u0010\n\u001a\u0004\b\u000b\u0010\f\"\u0004\b\r\u0010\u000e¨\u0006\u0010"}, d2 = {"ca0/a$b$a", "Lhl0/j;", "Lhl0/e;", "source", "", "byteCount", "Llg0/e0;", "o", "(Lhl0/e;J)V", "b", "J", "getBytesWritten", "()J", "setBytesWritten", "(J)V", "bytesWritten", "svc-upload_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class C0220a extends j {
public static ChangeQuickRedirect changeQuickRedirect;
public long bytesWritten;
public final q<String, Long, Long, lg0.e0> c;
public final String d;
public final b e;
public C0220a(f fVar, q<? super String, ? super Long, ? super Long, lg0.e0> qVar, String str, b bVar) {
super(fVar);
this.c = qVar;
this.d = str;
this.e = bVar;
}
@Override
public void o(e source, long byteCount) {
if (PatchProxy.proxy(new Object[]{source, new Long(byteCount)}, this, changeQuickRedirect, false, 48876, new Class[]{e.class, Long.TYPE}, Void.TYPE).isSupported) {
return;
}
super.o(source, byteCount);
long j = this.bytesWritten + byteCount;
this.bytesWritten = j;
q<String, Long, Long, lg0.e0> qVar = this.c;
if (qVar != null) {
qVar.invoke(this.d, Long.valueOf(j), Long.valueOf(this.e.a()));
}
}
}
public b(z zVar, q<? super String, ? super Long, ? super Long, lg0.e0> qVar, String str) {
this.b = zVar;
this.c = qVar;
this.d = str;
}
@Override
public long a() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 48874, new Class[0], Long.TYPE);
return proxy.isSupported ? ((Long) proxy.result).longValue() : this.b.a();
}
@Override
public y b() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 48873, new Class[0], y.class);
return proxy.isSupported ? (y) proxy.result : this.b.b();
}
@Override
public void i(f sink) {
if (PatchProxy.proxy(new Object[]{sink}, this, changeQuickRedirect, false, 48875, new Class[]{f.class}, Void.TYPE).isSupported) {
return;
}
C0220a c0220a = new C0220a(sink, this.c, this.d, this);
e eVar = new e();
this.b.i(eVar);
eVar.f1(c0220a);
}
}
@Metadata(d1 = {"\u0000%\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u001f\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0016¢\u0006\u0004\b\u0007\u0010\bJ\u001f\u0010\u000b\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\n\u001a\u00020\tH\u0016¢\u0006\u0004\b\u000b\u0010\f¨\u0006\r"}, d2 = {"ca0/a$c", "Lsk0/f;", "Lsk0/e;", "call", "Ljava/io/IOException;", "e", "Llg0/e0;", "f", "(Lsk0/e;Ljava/io/IOException;)V", "Lsk0/e0;", "response", "c", "(Lsk0/e;Lsk0/e0;)V", "svc-upload_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class c implements sk0.f {
public static ChangeQuickRedirect changeQuickRedirect;
public final l<Throwable, lg0.e0> a;
public final l<sk0.e0, lg0.e0> b;
public c(l<? super Throwable, lg0.e0> lVar, l<? super sk0.e0, lg0.e0> lVar2) {
this.a = lVar;
this.b = lVar2;
}
@Override
public void c(sk0.e call, sk0.e0 response) {
if (PatchProxy.proxy(new Object[]{call, response}, this, changeQuickRedirect, false, 48878, new Class[]{sk0.e.class, sk0.e0.class}, Void.TYPE).isSupported) {
return;
}
this.b.invoke(response);
}
@Override
public void f(sk0.e call, IOException e) {
if (PatchProxy.proxy(new Object[]{call, e}, this, changeQuickRedirect, false, 48877, new Class[]{sk0.e.class, IOException.class}, Void.TYPE).isSupported) {
return;
}
e.printStackTrace();
this.a.invoke(e);
}
}
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0010\u0003\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"", "it", "Llg0/e0;", "invoke", "(Ljava/lang/Throwable;)V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
public static final class d extends p implements l<Throwable, lg0.e0> {
public static ChangeQuickRedirect changeQuickRedirect;
public final l<C1505d, lg0.e0> s;
public final String t;
public d(l<? super C1505d, lg0.e0> lVar, String str) {
super(1);
this.s = lVar;
this.t = str;
}
@Override
public lg0.e0 invoke(Throwable th) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{th}, this, changeQuickRedirect, false, 48880, new Class[]{Object.class}, Object.class);
if (proxy.isSupported) {
return proxy.result;
}
invoke2(th);
return lg0.e0.a;
}
public final void invoke2(Throwable th) {
l<C1505d, lg0.e0> lVar;
if (PatchProxy.proxy(new Object[]{th}, this, changeQuickRedirect, false, 48879, new Class[]{Throwable.class}, Void.TYPE).isSupported || (lVar = this.s) == null) {
return;
}
lVar.invoke(new C1505d(EnumC1503b.REQUEST_EXCEPTION, this.t, null, null, null, th, 28, null));
}
}
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lsk0/e0;", "response", "Llg0/e0;", "a", "(Lsk0/e0;)V"}, k = 3, mv = {1, 8, 0})
public static final class e0 extends p implements l<sk0.e0, lg0.e0> {
public static ChangeQuickRedirect changeQuickRedirect;
public final l<C1505d, lg0.e0> s;
public final String t;
public e0(l<? super C1505d, lg0.e0> lVar, String str) {
super(1);
this.s = lVar;
this.t = str;
}
public final void a(sk0.e0 e0Var) {
if (PatchProxy.proxy(new Object[]{e0Var}, this, changeQuickRedirect, false, 48881, new Class[]{sk0.e0.class}, Void.TYPE).isSupported) {
return;
}
try {
l<C1505d, lg0.e0> lVar = this.s;
if (lVar != null) {
EnumC1503b enumC1503b = e0Var.q0() ? EnumC1503b.SUCCESS : EnumC1503b.RESPONSE_FAILED;
String str = this.t;
f0 a = e0Var.a();
lVar.invoke(new C1505d(enumC1503b, str, a != null ? a.u() : null, Integer.valueOf(e0Var.q()), e0Var.x(), null, 32, null));
}
C1504c.a(e0Var);
} catch (Throwable th) {
C1504c.a(e0Var);
throw th;
}
}
@Override
public lg0.e0 invoke(sk0.e0 e0Var) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{e0Var}, this, changeQuickRedirect, false, 48882, new Class[]{Object.class}, Object.class);
if (proxy.isSupported) {
return proxy.result;
}
a(e0Var);
return lg0.e0.a;
}
}
public final d0 a(InterfaceC1506e uploadSource, String token, String key, q<? super String, ? super Long, ? super Long, lg0.e0> progress) {
d0 l;
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{uploadSource, token, key, progress}, this, changeQuickRedirect, false, 48869, new Class[]{InterfaceC1506e.class, String.class, String.class, q.class}, d0.class);
if (proxy.isSupported) {
return (d0) proxy.result;
}
byte[] a = uploadSource.a();
if (a == null || (l = d0.a.l(d0.a, a, y.e.b("application/octet-stream"), 0, 0, 6, (Object) null)) == null) {
return null;
}
z.a aVar = new z.a((String) null, 1, (DefaultConstructorMarker) null);
aVar.f(z.l);
aVar.b("file", (String) null, l);
if (key != null) {
aVar.a("key", key);
}
aVar.a("token", token);
return new b(aVar.e(), progress, key);
}
public final c0 b(d0 requestBody) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{requestBody}, this, changeQuickRedirect, false, 48871, new Class[]{d0.class}, c0.class);
return proxy.isSupported ? (c0) proxy.result : new c0.a().l("https://up-z0.qiniup.com").h(requestBody).b();
}
public final void c(c0 request, l<? super Throwable, lg0.e0> onFailed, l<? super sk0.e0, lg0.e0> onResponse) {
if (PatchProxy.proxy(new Object[]{request, onFailed, onResponse}, this, changeQuickRedirect, false, 48872, new Class[]{c0.class, l.class, l.class}, Void.TYPE).isSupported) {
return;
}
this.client.a(request).r0(new c(onFailed, onResponse));
}
public final void d(InterfaceC1506e uploadSource, String token, String key, q<? super String, ? super Long, ? super Long, lg0.e0> progress, l<? super C1505d, lg0.e0> callback) {
if (PatchProxy.proxy(new Object[]{uploadSource, token, key, progress, callback}, this, changeQuickRedirect, false, 48867, new Class[]{InterfaceC1506e.class, String.class, String.class, q.class, l.class}, Void.TYPE).isSupported) {
return;
}
d0 a = a(uploadSource, token, key, progress);
if (a == null) {
if (callback != null) {
callback.invoke(new C1505d(EnumC1503b.PARAMS_ILLEGAL, key, null, null, null, null, 60, null));
}
} else {
try {
c(b(a), new d(callback, key), new e0(callback, key));
} catch (Throwable th) {
if (callback != null) {
callback.invoke(new C1505d(EnumC1503b.REQUEST_EXCEPTION, key, null, null, null, th, 28, null));
}
}
}
}
}