导航菜单

页面标题

页面副标题

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

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

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


package com.showself.ui;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.mifeng.ui.R;
import com.showself.service.g;
import com.showself.utils.Utils;
import com.showself.utils.r0;
import java.util.HashMap;

public class RechargeActivity extends c {
    private String a;
    private int b;
    private String c;
    private String d;

    private int f2810e;

    private int f2811f;

    private String f2812g;

    private String f2813h;

    private Button f2815j;

    private Button f2816k;
    private TextView l;
    private EditText m;
    private EditText n;
    private TextView o;
    private TextView p;
    private String q;
    private int r;
    private LinearLayout s;

    private int f2814i = 1;
    private boolean t = false;
    private int u = 10;
    View.OnClickListener v = new b();

    class a extends Thread {
        final String a;

        a(String str) {
            this.a = str;
        }

        @Override
        public void run() {
            while (RechargeActivity.this.u >= 0) {
                try {
                    Thread.sleep(1000L);
                } catch (InterruptedException e2) {
                    e2.printStackTrace();
                }
                RechargeActivity.A(RechargeActivity.this);
            }
            HashMap hashMap = new HashMap();
            hashMap.put("orderid", this.a);
            ?? r1 = RechargeActivity.this;
            r1.addTask(new com.showself.service.f(10077, hashMap), r1);
        }
    }

    class b implements View.OnClickListener {
        b() {
        }

        @Override
        public void onClick(View view) {
            int id = view.getId();
            if (id == 2131296486) {
                RechargeActivity.this.finish();
                return;
            }
            if (id != 2131296490) {
                return;
            }
            if (RechargeActivity.this.f2810e == 0) {
                androidx.fragment.app.b bVar = RechargeActivity.this;
                Utils.Z0(bVar, bVar.getString(R.string.select_recharge_item));
            } else if (!RechargeActivity.this.F()) {
                androidx.fragment.app.b bVar2 = RechargeActivity.this;
                Utils.Z0(bVar2, bVar2.getString(R.string.account_pwd_error));
            } else if (!RechargeActivity.this.t) {
                RechargeActivity.this.H();
            } else {
                androidx.fragment.app.b bVar3 = RechargeActivity.this;
                Utils.Z0(bVar3, bVar3.getString(R.string.paying_wait));
            }
        }
    }

    static int A(RechargeActivity rechargeActivity) {
        int i2 = rechargeActivity.u;
        rechargeActivity.u = i2 - 1;
        return i2;
    }

    public boolean F() {
        this.f2812g = this.m.getText().toString().trim();
        String trim = this.n.getText().toString().trim();
        this.f2813h = trim;
        String str = this.f2812g;
        if (str != null && trim != null) {
            int i2 = this.b;
            if (i2 != 103) {
                if (i2 != 106) {
                    if (i2 != 112) {
                        switch (i2) {
                        }
                    }
                    if (str.matches("\\d{19}") && this.f2813h.matches("\\d{18}")) {
                        return true;
                    }
                }
                if (str.matches("\\d{15}") && this.f2813h.matches("\\d{19}")) {
                    return true;
                }
            }
            if (str.matches("\\d{17}") && this.f2813h.matches("\\d{18}")) {
                return true;
            }
        }
        return false;
    }

    private void G(String str, String str2) {
        if (str != null) {
            this.u = Integer.parseInt(str);
        }
        new a(str2).start();
    }

    public void H() {
        HashMap hashMap = new HashMap();
        hashMap.put("fuid", Integer.valueOf(r0.y(this).getUserId()));
        hashMap.put("type", Integer.valueOf(this.b));
        hashMap.put("category", Integer.valueOf(this.f2814i));
        hashMap.put("product_id", Integer.valueOf(this.f2811f));
        hashMap.put("vip_productid", Integer.valueOf(this.r));
        hashMap.put("cardnum", this.f2812g);
        hashMap.put("password", this.f2813h);
        addTask(new com.showself.service.f(10076, hashMap), this);
        this.t = true;
        Utils.U0(this);
    }

    @Override
    public void init() {
        throw new UnsupportedOperationException("Method not decompiled: com.showself.ui.RechargeActivity.init():void");
    }

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.recharge);
        this.a = getIntent().getStringExtra("title");
        this.b = getIntent().getIntExtra("type", 103);
        this.c = getIntent().getStringExtra("nohint");
        this.d = getIntent().getStringExtra("pwhint");
        this.f2814i = getIntent().getIntExtra("category", 1);
        this.r = getIntent().getIntExtra("vip_productid", 0);
        this.q = getIntent().getStringExtra("prompt");
        getIntent().getIntExtra("realvalue", 0);
        this.f2810e = getIntent().getIntExtra("value", 0);
        this.f2811f = getIntent().getIntExtra("product_id", 0);
        init();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

    @Override
    protected void onResume() {
        super.onResume();
    }

    @Override
    protected void onStop() {
        super.onStop();
    }

    @Override
    public void refresh(Object... objArr) {
        Utils.n(this);
        int intValue = ((Integer) objArr[0]).intValue();
        HashMap hashMap = (HashMap) objArr[1];
        if (hashMap != null) {
            int intValue2 = ((Integer) hashMap.get(com.showself.net.e.n1)).intValue();
            String str = (String) hashMap.get(com.showself.net.e.o1);
            switch (intValue) {
                case 10075:
                    if (intValue2 != com.showself.net.e.m1) {
                        Utils.Z0(this, str);
                        break;
                    }
                    break;
                case 10076:
                    this.t = false;
                    if (intValue2 != com.showself.net.e.m1) {
                        Utils.Z0(this, str);
                        break;
                    } else {
                        Integer num = (Integer) hashMap.get("ret");
                        String str2 = (String) hashMap.get("actiontime");
                        String str3 = (String) hashMap.get("orderid");
                        if (num != null && num.intValue() == 0) {
                            Utils.W0(this, false);
                            G(str2, str3);
                            break;
                        } else {
                            Utils.Z0(this, str);
                            break;
                        }
                    }
                    break;
                case 10077:
                    if (intValue2 != com.showself.net.e.m1) {
                        Utils.Z0(this, str);
                        finish();
                        break;
                    } else {
                        Utils.Z0(this, str);
                        break;
                    }
            }
        }
        g.i(this);
    }
}