OurPlay v5.5.9版本的 MD5 值为:d4e139798f4c2243a1145c8af5e21046

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


package com.excelliance.kxqp.gs.ui.aboutus;

import android.content.Context;
import android.os.Handler;
import android.os.HandlerThread;
import com.excelliance.kxqp.gs.bean.TestHandleSetProxyBean;
import com.excelliance.kxqp.gs.discover.model.ResponseData;
import com.excelliance.kxqp.gs.service.ProxyDelayService;
import com.excelliance.kxqp.gs.thpool.tp;
import com.excelliance.kxqp.gs.ui.aboutus.a;
import com.excelliance.kxqp.gs.util.az;
import com.excelliance.kxqp.gs.util.bd;
import com.excelliance.kxqp.gs.util.cn;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import org.json.JSONException;
import org.json.JSONObject;

public class b implements a.InterfaceC0334a {

    private Context f8345a;

    private Handler f8346b;
    private a.b c;

    @Override
    public void initData() {
    }

    public b(Context context, a.b bVar) {
        this.f8345a = context;
        this.c = bVar;
        HandlerThread handlerThread = new HandlerThread("AboutPresenter", 10);
        handlerThread.start();
        this.f8346b = new Handler(handlerThread.getLooper());
    }

    public void a(final int i, final int i2) {
        this.f8346b.post(new Runnable() {
            @Override
            public void run() {
                ResponseData responseData;
                tp.i(new Runnable() {
                    @Override
                    public void run() {
                        if (b.this.c != null) {
                            b.this.c.showLoading("拉取中");
                        }
                    }
                });
                JSONObject i3 = cn.i(b.this.f8345a);
                try {
                    i3.put("ipid", i);
                } catch (JSONException e) {
                    e.printStackTrace();
                }
                ProxyDelayService.a("AboutPresenter", "AboutPresenter/getServerIp() requestParams:" + i3);
                String b2 = bd.b("http://data.gplayspace.cn/dload/dloadbyid", i3.toString(), 10000, 10000);
                ProxyDelayService.a("AboutPresenter", "AboutPresenter/getServerIp() rawResponse:" + b2);
                try {
                    b2 = com.excelliance.kxqp.task.store.c.b(b2);
                } catch (Exception unused) {
                }
                try {
                    ProxyDelayService.a("AboutPresenter", String.format("RankingRepository/getListResponseData:thread(%s) decryptResult(%s)", Thread.currentThread().getName(), b2));
                    responseData = (ResponseData) new Gson().a(b2, new TypeToken<ResponseData<TestHandleSetProxyBean>>() {
                    }.getType());
                } catch (Exception e2) {
                    az.e("AboutPresenter", "RankingRepository/getAppList:" + e2.toString());
                    responseData = null;
                }
                if (responseData != null && responseData.data != 0 && b.this.c != null) {
                    b.this.c.a((TestHandleSetProxyBean) responseData.data, i2);
                }
                tp.i(new Runnable() {
                    @Override
                    public void run() {
                        if (b.this.c != null) {
                            b.this.c.hideLoading();
                        }
                    }
                });
            }
        });
    }

    public void a() {
        this.c = null;
        this.f8345a = null;
        this.f8346b.getLooper().quit();
    }
}