CAG v5.7.4版本的 MD5 值为:bc57ead76a7a30559f0708e9d60d749f
以下内容为反编译后的 a.java 源代码,内容仅作参考
package d.c.a.a.a;
import com.liulishuo.filedownloader.model.FileDownloadModel;
import d.c.a.j.s;
import i.c.a.c.m;
import java.io.IOException;
import java.util.Objects;
import kotlin.Metadata;
import n.i.b.h;
import org.godfootsteps.arch.api.AppClient;
import org.godfootsteps.arch.api.model.VerifyParaModel;
import org.json.JSONObject;
import r.c0;
import r.g0;
import r.i0;
import r.k0.h.f;
import r.w;
import r.x;
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u0010\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0016¨\u0006\u0007"}, d2 = {"Lorg/godfootsteps/arch/api/interceptor/BasicParamsInterceptor;", "Lokhttp3/Interceptor;", "()V", "intercept", "Lokhttp3/Response;", "chain", "Lokhttp3/Interceptor$Chain;", "arch_release"}, k = 1, mv = {1, 5, 1}, xi = 48)
public final class a implements x {
@Override
public g0 a(x.a aVar) throws IOException {
int i2;
h.e(aVar, "chain");
f fVar = (f) aVar;
c0 c0Var = fVar.f16667e;
String str = c0Var.a.f16859i;
h.d(str, "request.url().toString()");
boolean z = false;
if (!n.o.a.c(str, "/v1/verifyPara", false, 2)) {
String str2 = c0Var.a.f16859i;
h.d(str2, "request.url().toString()");
Objects.requireNonNull(AppClient.a);
if (n.o.a.c(str2, "https://appservercn.kingdomsalvation.org", false, 2)) {
w.a k2 = c0Var.a.k();
String q2 = c0Var.a.q("lt");
if (q2 == null || q2.length() == 0) {
k2.a("lt", s.a());
}
k2.a("androidVersion", i.c.a.c.c.b());
if (e.c == null) {
e.c = new e();
}
e eVar = e.c;
Objects.requireNonNull(eVar, "null cannot be cast to non-null type org.godfootsteps.arch.api.interceptor.UpdateToken");
String string = eVar.a.getString("header", "");
if (!(string == null || string.length() == 0)) {
VerifyParaModel verifyParaModel = (VerifyParaModel) m.a(string, VerifyParaModel.class);
if (verifyParaModel.getLastTime() - System.currentTimeMillis() <= verifyParaModel.getExpiration()) {
}
}
z = true;
if (z) {
if (e.c == null) {
e.c = new e();
}
e eVar2 = e.c;
Objects.requireNonNull(eVar2, "null cannot be cast to non-null type org.godfootsteps.arch.api.interceptor.UpdateToken");
eVar2.b();
}
c0.a aVar2 = new c0.a(c0Var);
if (e.c == null) {
e.c = new e();
}
e eVar3 = e.c;
Objects.requireNonNull(eVar3, "null cannot be cast to non-null type org.godfootsteps.arch.api.interceptor.UpdateToken");
aVar2.c.a("token", eVar3.b);
aVar2.c.a("apiVersion", "v2");
aVar2.g(k2.b());
c0 a = aVar2.a();
g0 b = fVar.b(a, fVar.b, fVar.c);
if (b.f16523k == 200) {
h.d(b, "response");
JSONObject jSONObject = new JSONObject(n.m.t.a.p.m.e1.a.x0(b));
if (jSONObject.has(FileDownloadModel.STATUS) && ((i2 = jSONObject.getInt(FileDownloadModel.STATUS)) == -4 || i2 == -3 || i2 == -2)) {
if (e.c == null) {
e.c = new e();
}
e eVar4 = e.c;
Objects.requireNonNull(eVar4, "null cannot be cast to non-null type org.godfootsteps.arch.api.interceptor.UpdateToken");
eVar4.b();
c0.a aVar3 = new c0.a(a);
if (e.c == null) {
e.c = new e();
}
e eVar5 = e.c;
Objects.requireNonNull(eVar5, "null cannot be cast to non-null type org.godfootsteps.arch.api.interceptor.UpdateToken");
aVar3.b("token", eVar5.b);
i0 i0Var = b.f16527o;
if (i0Var != null) {
i0Var.close();
}
g0 b2 = fVar.b(aVar3.a(), fVar.b, fVar.c);
h.d(b2, "chain.proceed(modifyHeaderBuilder.build())");
return b2;
}
}
h.d(b, "response");
return b;
}
}
g0 b3 = fVar.b(c0Var, fVar.b, fVar.c);
h.d(b3, "chain.proceed(request)");
return b3;
}
}