PicWish v1.6.8版本的 MD5 值为:7e8bab240f03cf6dad8952f8374c4ed1

以下内容为反编译后的 b.java 源代码,内容仅作参考


package vg;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import okhttp3.Call;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;
public final class b {
    public static volatile b c;
    public static final List<Interceptor> f13791d = new ArrayList();
    public OkHttpClient f13792a;
    public final dh.a f13793b;

    public class a implements Runnable {
        public final yg.a f13794l;
        public final Call f13795m;
        public final Exception f13796n;
        public final int f13797o;

        public a(yg.a aVar, Call call, Exception exc, int i10) {
            this.f13794l = aVar;
            this.f13795m = call;
            this.f13796n = exc;
            this.f13797o = i10;
        }

        @Override
        public final void run() {
            this.f13794l.a(this.f13795m, this.f13796n);
            Objects.requireNonNull(this.f13794l);
        }
    }

    public b(OkHttpClient.Builder builder) {
        builder = builder == null ? new OkHttpClient.Builder() : builder;
        ?? r02 = f13791d;
        if (r02.size() > 0) {
            Iterator it = r02.iterator();
            while (it.hasNext()) {
                builder.addInterceptor((Interceptor) it.next());
            }
        }
        builder.addInterceptor(zg.b.f15005d);
        this.f13792a = builder.build();
        dh.a aVar = dh.a.f6874a;
        aVar.getClass().toString();
        this.f13793b = aVar;
    }

    public static xg.c b() {
        return new xg.c("DELETE");
    }

    public static b c(OkHttpClient.Builder builder) {
        if (c == null) {
            synchronized (b.class) {
                if (c == null) {
                    c = new b(builder);
                }
            }
            zg.b bVar = zg.b.f15003a;
            xg.a aVar = new xg.a();
            aVar.f14410a = "https://g.aoscdn.com/base/support/ip";
            aVar.b().c(new zg.c());
        }
        return c;
    }

    public static xg.c d() {
        return new xg.c("PUT");
    }

    public final void a(Interceptor interceptor) {
        ?? r02 = f13791d;
        if (r02.contains(interceptor)) {
            return;
        }
        r02.add(interceptor);
        OkHttpClient okHttpClient = this.f13792a;
        if (okHttpClient == null) {
            return;
        }
        this.f13792a = okHttpClient.newBuilder().addInterceptor(interceptor).build();
    }

    public final void e(Call call, Exception exc, yg.a aVar, int i10) {
        if (aVar == null) {
            return;
        }
        dh.a aVar2 = this.f13793b;
        aVar2.a().execute(new a(aVar, call, exc, i10));
    }
}