流利说-英语 v8.47.26版本的 MD5 值为:0079dce5ff96e6cdbc95c261b3f51387

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


package com.xingin.xhssharesdk.f;

import androidx.lifecycle.CoroutineLiveDataKt;
import androidx.work.WorkRequest;
import java.io.ByteArrayOutputStream;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.concurrent.TimeUnit;
import okhttp3.MediaType;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.RequestBody;
import okhttp3.Response;

public final class d<T> implements c<T> {
    public static final MediaType jLN = MediaType.get("application/octet-stream; charset=utf-8");
    public final OkHttpClient Pn;

    public final String f3772b = "https://spider-tracker.xiaohongshu.com/";
    public final com.xingin.xhssharesdk.e.a jLO;

    public d(com.xingin.xhssharesdk.e.a aVar) {
        this.jLO = aVar;
        OkHttpClient.Builder builder = new OkHttpClient.Builder();
        TimeUnit timeUnit = TimeUnit.MILLISECONDS;
        OkHttpClient.Builder writeTimeout = builder.connectTimeout(CoroutineLiveDataKt.DEFAULT_TIMEOUT, timeUnit).callTimeout(WorkRequest.MIN_BACKOFF_MILLIS, timeUnit).writeTimeout(CoroutineLiveDataKt.DEFAULT_TIMEOUT, timeUnit);
        writeTimeout.addInterceptor(new b());
        this.Pn = writeTimeout.build();
    }

    @Override
    public final f G(ArrayList arrayList) {
        int i;
        try {
            this.jLO.getClass();
            ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
            Iterator it = arrayList.iterator();
            while (it.hasNext()) {
                byteArrayOutputStream.write((byte[]) it.next());
            }
            try {
                try {
                    Response response = null;
                    try {
                        response = this.Pn.newCall(new Request.Builder().url(this.f3772b + "api/spider").post(RequestBody.create(jLN, byteArrayOutputStream.toByteArray())).build()).execute();
                        response.close();
                        int code = response.code();
                        String message = response.message();
                        f fVar = new f();
                        if (code < 200 || code >= 300) {
                            fVar.f3774a = false;
                        } else {
                            fVar.f3774a = true;
                        }
                        fVar.f3775b = code;
                        fVar.c = message;
                        try {
                            response.close();
                        } catch (Exception unused) {
                        }
                        return fVar;
                    } catch (Throwable th) {
                        try {
                            th.printStackTrace();
                            f c = f.c(-1, th);
                            if (response != null) {
                                try {
                                    response.close();
                                } catch (Exception unused2) {
                                }
                            }
                            return c;
                        } catch (Throwable th2) {
                            if (response != null) {
                                try {
                                    response.close();
                                } catch (Exception unused3) {
                                }
                            }
                            throw th2;
                        }
                    }
                } catch (Throwable th3) {
                    th = th3;
                    th.printStackTrace();
                    i = -4;
                    return f.c(i, th);
                }
            } catch (Throwable th4) {
                th = th4;
                th.printStackTrace();
                i = -3;
            }
        } catch (Throwable th5) {
            th = th5;
            th.printStackTrace();
            i = -2;
        }
    }
}