导航菜单

页面标题

页面副标题

95爱播免登录版 v3.1.9 - a.java 源代码

正在查看: 95爱播免登录版 v3.1.9 应用的 a.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.mobile.auth.h;

import android.content.Context;
import android.os.Bundle;
import com.cmic.sso.sdk.a;
import com.mobile.auth.BuildConfig;
import com.mobile.auth.g.a;
import com.mobile.auth.g.c;
import com.mobile.auth.g.f;
import com.mobile.auth.k.aa;
import com.mobile.auth.k.e;
import com.mobile.auth.k.g;
import com.mobile.auth.k.j;
import com.mobile.auth.k.m;
import com.mobile.auth.k.n;
import com.mobile.auth.k.p;
import com.mobile.auth.k.q;
import com.mobile.auth.k.u;
import com.mobile.auth.k.w;
import com.mobile.auth.k.y;
import com.mobile.auth.k.z;
import com.sina.weibo.sdk.statistic.LogBuilder;
import com.tencent.connect.common.Constants;
import com.tencent.open.SocialConstants;
import org.json.JSONException;
import org.json.JSONObject;

public class a {
    private static a b;
    private Context a;

    protected a() {
    }

    protected a(Context context) {
        this.a = context;
    }

    public static a a(Context context) {
        if (b == null) {
            synchronized (a.class) {
                if (b == null) {
                    b = new a(context);
                }
            }
        }
        return b;
    }

    public void a(Context context, Bundle bundle, b bVar) {
        boolean z;
        int i2 = bundle.getInt("networkType");
        String string = bundle.getString("authtype", "");
        c cVar = new c();
        c.a aVar = new c.a();
        aVar.e("1.0");
        aVar.f(BuildConfig.CMCC_SDK_VERSION);
        aVar.g(bundle.getString("appid"));
        aVar.h(string);
        aVar.i(bundle.getString("smskey", ""));
        aVar.j(bundle.getString("imsi", ""));
        aVar.k(p.a(context).c());
        aVar.d(p.a(context).d());
        aVar.c(p.a(this.a).b());
        aVar.l(bundle.getString("operatorType"));
        aVar.m(i2 + "");
        aVar.n(u.a());
        aVar.o(u.b());
        aVar.p(u.c());
        aVar.q("0");
        aVar.r(aa.a());
        aVar.s(w.a());
        aVar.t(bundle.getString("apppackage"));
        aVar.u(bundle.getString("appsign"));
        aVar.t(bundle.getString("apppackage"));
        aVar.u(bundle.getString("appsign"));
        aVar.v(aVar.w(bundle.getString(LogBuilder.KEY_APPKEY)));
        cVar.a(bundle.getString(a.a.a));
        cVar.b(n.a().a(bundle.getString(a.a.a)));
        cVar.a(aVar);
        bundle.putString("interfacetype", bundle.getString("interfacetype", "") + "getPrePhonescrip;");
        bundle.putString("interfaceVersion", "7.0");
        bundle.putBoolean("isCloseIpv4", y.b());
        bundle.putBoolean("isCloseIpv6", y.c());
        String str = y.e() + "rs/getPrePhonescrip";
        if (i2 == 3 && string.equals("3")) {
            com.mobile.auth.k.b.a(context);
            g.b("BaseRequest", "使用wifi下取号" + i2);
            z = true;
        } else {
            g.b("BaseRequest", "不使用wifi下取号" + i2);
            z = false;
        }
        a(str, cVar, z, bundle, bVar);
    }

    public void a(Bundle bundle, b bVar) {
        com.mobile.auth.g.a aVar = new com.mobile.auth.g.a();
        a.C0016a c0016a = new a.C0016a();
        aVar.f("0.1");
        aVar.i(bundle.getString("phonescrip"));
        aVar.h(bundle.getString("appid"));
        aVar.g(aa.a());
        aVar.c(w.a());
        if ("2".equals(bundle.getString("authtype"))) {
            aVar.d("2.0");
        } else {
            aVar.d("6.0");
        }
        aVar.e(bundle.getString("userCapaid", "50"));
        aVar.a("0");
        aVar.b(bundle.getString("sourceid"));
        aVar.k(bundle.getString("authenticated_appid"));
        aVar.l(bundle.getString("genTokenByAppid"));
        aVar.j(aVar.m(bundle.getString(LogBuilder.KEY_APPKEY)));
        c0016a.a(q.b("AID", ""));
        c0016a.b(u.c());
        c0016a.c(u.b());
        c0016a.d(u.a());
        c0016a.e(bundle.getString("operatorType", ""));
        c0016a.f("0");
        c0016a.g(u.a(this.a) + "");
        c0016a.h(z.a(true));
        c0016a.i(z.a(false, false));
        c0016a.j(y.h() ? "0" : "1");
        if (m.a()) {
            c0016a.k("1");
        } else {
            c0016a.k("0");
        }
        aVar.a(c0016a.a());
        String str = y.f() + "api/getAuthToken";
        com.mobile.auth.i.a.a(y.a(y.f()));
        bundle.putString("interfacetype", bundle.getString("interfacetype", "") + "getAuthToken;");
        bundle.putString("interfaceVersion", "6.0");
        a(str, aVar, false, bundle, bVar);
    }

    public <T extends f> void a(final String str, T t, boolean z, final Bundle bundle, final b bVar) {
        String string = bundle.getString("traceId");
        g.a("BaseRequest", "request https url : " + str + ">>>>>>> PARAMS : " + t.a().toString());
        if (u.a(this.a) != 0) {
            try {
                JSONObject jSONObject = new JSONObject();
                jSONObject.put("timeOut", bundle.getString("timeOut"));
                jSONObject.put("imsiState", bundle.getString("imsiState"));
            } catch (JSONException e2) {
                e2.printStackTrace();
            }
            new e().a(str, t, z, new e.a() {

                private boolean f1384e = false;

                @Override
                public void a(String str2, String str3) {
                    if (this.f1384e) {
                        return;
                    }
                    this.f1384e = true;
                    g.a("BaseRequest", "request success , url : " + str + ">>>>result : " + str2);
                    try {
                        JSONObject jSONObject2 = new JSONObject(str2);
                        String string2 = jSONObject2.has("resultCode") ? jSONObject2.getString("resultCode") : jSONObject2.getString("resultcode");
                        if (!j.a(bundle.getString("traceId")) || str.contains("Config")) {
                            bVar.a(string2, jSONObject2.optString(SocialConstants.PARAM_APP_DESC), jSONObject2);
                        }
                    } catch (Exception e3) {
                        e3.printStackTrace();
                        a("200021", "数据解析异常", str3);
                    }
                }

                @Override
                public void a(String str2, String str3, String str4) {
                    if (this.f1384e) {
                        return;
                    }
                    this.f1384e = true;
                    JSONObject jSONObject2 = new JSONObject();
                    try {
                        jSONObject2.put("resultCode", str2);
                        jSONObject2.put(SocialConstants.PARAM_APP_DESC, str3);
                    } catch (JSONException e3) {
                        e3.printStackTrace();
                    }
                    g.a("BaseRequest", "request failed , url : " + str + ">>>>>errorMsg : " + jSONObject2.toString());
                    if (bVar != null) {
                        if (!j.a(bundle.getString("traceId")) || str.contains("Config")) {
                            bVar.a(str2, str3, jSONObject2);
                        }
                    }
                }
            }, Constants.HTTP_POST, string, bundle);
            return;
        }
        JSONObject jSONObject2 = new JSONObject();
        try {
            jSONObject2.put("resultCode", "200022");
            jSONObject2.put(SocialConstants.PARAM_APP_DESC, "网络未连接");
        } catch (JSONException e3) {
            e3.printStackTrace();
        }
        g.a("BaseRequest", "request failed , url : " + str + ">>>>>errorMsg : " + jSONObject2.toString());
        if (bVar != null) {
            bVar.a("200022", "网络未连接", jSONObject2);
        }
    }

    public void a(boolean z, Bundle bundle, b bVar) {
        com.mobile.auth.g.b bVar2 = new com.mobile.auth.g.b();
        bVar2.a("1.0");
        bVar2.b("Android");
        bVar2.c(q.b("AID", ""));
        bVar2.d(z ? "1" : "0");
        bVar2.e(BuildConfig.CMCC_SDK_VERSION);
        bVar2.f(bundle.getString("appid"));
        bVar2.g(bVar2.b());
        a("https://config.cmpassport.com/client/uniConfig", bVar2, false, bundle, bVar);
    }
}