秦华影视 v1.0.0版本的 MD5 值为:90520322e40df4849cf4989ab6339524

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


package p.a.y.e.a.s.e.net;

import android.content.Context;
import android.text.TextUtils;
import com.getmessage.module_base.web.FileManager;
import com.meizu.cloud.pushsdk.notification.model.NotifyType;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONObject;

public class c30 extends p40<JSONObject> {
    private a40 lite_else;

    private c30(String str, Context context) {
        super(str, context);
    }

    public static c30 lite_short(Context context, a40 a40Var) {
        c30 c30Var = new c30(lite_super(a40Var), context);
        c30Var.lite_int(0);
        c30Var.lite_break("GetCoder");
        c30Var.lite_else = a40Var;
        return c30Var;
    }

    private static String lite_super(a40 a40Var) {
        return String.format("https://%s/get.php?gt=", a40Var.lite_do()) + a40Var.lite_import() + "&challenge=" + a40Var.lite_case() + "&client_type=android&lang=" + a40Var.lite_static() + "&client_type=android" + f30.lite_for(a40Var.lite_static() == null ? "" : a40Var.lite_static(), 1);
    }

    @Override
    public boolean lite_char(int i, h50<String, JSONObject> h50Var, JSONObject jSONObject) {
        F f;
        String optString = jSONObject.optString("user_error");
        try {
            if (!TextUtils.isEmpty(optString)) {
                try {
                    f = URLDecoder.decode(optString, FileManager.CODE_ENCODING);
                } catch (UnsupportedEncodingException e) {
                    e.printStackTrace();
                    f = optString;
                }
                String optString2 = jSONObject.optString("error_code");
                if (optString2 != null) {
                    optString2 = optString2.replaceAll("[a-zA-Z]", "");
                }
                h50Var.lite_do = f;
                ?? jSONObject2 = new JSONObject();
                jSONObject2.put("error_code", optString2);
                h50Var.lite_if = jSONObject2;
                return true;
            }
            JSONObject optJSONObject = jSONObject.optJSONObject("data");
            if (optJSONObject == null) {
                h50Var.lite_do = jSONObject.toString() + ":  " + lite_if("data");
                return false;
            }
            String optString3 = optJSONObject.optString(NotifyType.SOUND);
            String optString4 = optJSONObject.optString("theme_version");
            String optString5 = optJSONObject.optString("feedback");
            String str = TextUtils.isEmpty(optString5) ? "" : optString5;
            String optString6 = optJSONObject.optString("api_server");
            if (TextUtils.isEmpty(optString6)) {
                h50Var.lite_do = jSONObject.toString() + ":  " + lite_if("api_server");
                return false;
            }
            String optString7 = optJSONObject.optString("theme");
            if (!optJSONObject.has("logo")) {
                h50Var.lite_do = jSONObject.toString() + ":  " + lite_if("logo");
                return false;
            }
            boolean optBoolean = optJSONObject.optBoolean("logo");
            e40.lite_do(optBoolean);
            JSONArray optJSONArray = optJSONObject.optJSONArray("static_servers");
            ArrayList arrayList = new ArrayList();
            if (optJSONArray != null) {
                for (int i2 = 0; optJSONArray.length() > i2; i2++) {
                    String optString8 = optJSONArray.optString(i2);
                    if (!TextUtils.isEmpty(optString8)) {
                        arrayList.add(optString8);
                    }
                }
            }
            if (arrayList.size() == 0) {
                h50Var.lite_do = jSONObject.toString() + ":  " + lite_if("static_servers");
                return false;
            }
            ArrayList arrayList2 = new ArrayList();
            JSONArray optJSONArray2 = optJSONObject.optJSONArray("c");
            if (optJSONArray2 != null) {
                for (int i3 = 0; i3 < optJSONArray2.length(); i3++) {
                    arrayList2.add(Integer.valueOf(optJSONArray2.optInt(i3)));
                }
            }
            f40 f40Var = new f40();
            f40Var.lite_if(optString6);
            f40Var.lite_for(arrayList2);
            f40Var.lite_try(str);
            f40Var.lite_int(optBoolean);
            f40Var.lite_byte(arrayList);
            f40Var.lite_char(optString7);
            f40Var.lite_else(optString4);
            f40Var.lite_case(optString3);
            this.lite_else.lite_for(f40Var);
            h50Var.lite_do = "OK";
            h50Var.lite_if = jSONObject;
            return true;
        } catch (Exception e2) {
            e2.printStackTrace();
            h50Var.lite_do = jSONObject.toString() + ": " + e2.toString();
            return false;
        }
    }

    @Override
    public boolean lite_class() {
        return false;
    }

    @Override
    public Map<String, String> lite_void() {
        HashMap m = r5.m("Content-Type", "application/x-www-form-urlencoded");
        a40 a40Var = this.lite_else;
        if (a40Var != null) {
            m.put("Host", a40Var.lite_do());
        }
        byte[] bArr = this.lite_try;
        m.put("Content-Length", String.valueOf(bArr == null ? 0 : bArr.length));
        return m;
    }
}