导航菜单

页面标题

页面副标题

多多分期 v4.1.2 - MTM0ACT.java 源代码

正在查看: 多多分期 v4.1.2 应用的 MTM0ACT.java JAVA 源代码文件

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


package com.duoduofenqi.ui.activitys;

import android.content.Context;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import com.base.commonlibrary.base.BaseResult;
import com.base.commonlibrary.netstate.ComNetWorkUtil;
import com.base.commonlibrary.views.TitleLayout;
import com.duoduofenqi.mjyp.BMAG01ACT;
import com.duoduofenqi.mjyp.app.fragment.LoginPwdDialog;
import com.duoduofenqi.ui.activitys.MTM0ACT;
import com.duoduofenqi.ui.bean.EncForm;
import com.duoduofenqi.ui.bean.MyBorrowBean;
import com.duoduofenqi.ui.bean.OrderthirdBean;
import com.duoduofenqi.ui.bean.PostponeBean;
import com.duoduofenqi.ui.bean.Result;
import com.duoduofenqi.ui.bean.VerifyCodeBean;
import com.liaoinstan.springview.widget.SpringView;
import d.b.a.i;
import d.b.a.l;
import d.b.a.o.c;
import d.b.a.o.g.b;
import d.b.a.r.j;
import d.b.a.r.n;
import d.i.b.d.b.h;
import d.i.c.c.d;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

public class MTM0ACT extends d.i.b.d.b.e {
    public int G;
    public MyBorrowBean H;
    public PostponeBean I;
    public String J;
    public d.i.b.c.c K;
    public List<OrderthirdBean.ResultBean> L = new ArrayList();

    @BindView(i.recycleView)
    public RecyclerView recycleView;

    @BindView(i.sp)
    public SpringView sp;

    @BindView(2131299115)
    public TextView tip;

    @BindView(2131299147)
    public TitleLayout title;

    public class a implements b.c {

        public final Bundle f4045a;

        public a(Bundle bundle) {
            this.f4045a = bundle;
        }

        @Override
        public void a(View view, RecyclerView.c0 c0Var, int i2) {
            if (i2 < 0 || i2 >= MTM0ACT.this.L.size()) {
                return;
            }
            OrderthirdBean.ResultBean resultBean = MTM0ACT.this.L.get(i2);
            Integer valueOf = Integer.valueOf(resultBean.getJumpStatus() == null ? 0 : resultBean.getJumpStatus().intValue());
            int id = resultBean.getId();
            if (valueOf.intValue() != 0) {
                if (MTM0ACT.this.G == 1) {
                    MTM0ACT.this.v0(id);
                    return;
                } else {
                    MTM0ACT.this.x0(id);
                    return;
                }
            }
            Bundle bundle = new Bundle();
            bundle.putInt("TYPE", MTM0ACT.this.G);
            bundle.putInt("id", id);
            if (MTM0ACT.this.G == 1) {
                MTM0ACT.this.H = (MyBorrowBean) this.f4045a.getSerializable("myBorrow");
                MTM0ACT.this.H.setThirdChannelId(id);
                bundle.putSerializable("myBorrow", MTM0ACT.this.H);
            } else {
                MTM0ACT.this.I = (PostponeBean) this.f4045a.getSerializable("myBorrow");
                MTM0ACT.this.I.setThirdChannelId(id);
                bundle.putSerializable("myBorrow", MTM0ACT.this.I);
            }
            MTM0ACT.this.e0(MTT0Act.class, bundle);
            MTM0ACT.this.finish();
        }

        @Override
        public boolean b(View view, RecyclerView.c0 c0Var, int i2) {
            return false;
        }
    }

    public class b extends h<List<OrderthirdBean.ResultBean>> {
        public b(Context context, boolean z) {
            super(context, z);
        }

        @Override
        public void a(String str) {
            MTM0ACT.this.c0(str);
        }

        @Override
        public void b(List<OrderthirdBean.ResultBean> list) {
            if (list != null) {
                MTM0ACT.this.L.clear();
                MTM0ACT mtm0act = MTM0ACT.this;
                mtm0act.L = list;
                mtm0act.K.n(list);
                MTM0ACT.this.i0();
            }
        }
    }

    public class c extends h<BaseResult<Result>> {
        public c(Context context, boolean z) {
            super(context, z);
        }

        @Override
        public void a(String str) {
            Bundle bundle = new Bundle();
            bundle.putInt("status", 0);
            bundle.putString("msg", str);
            MTM0ACT.this.e0(MT1ACT.class, bundle);
        }

        @Override
        public void b(BaseResult<Result> baseResult) {
            if (baseResult.getCode() == 3039) {
                MTM0ACT.this.c0(baseResult.getMessage());
                MTM0ACT.this.d0(MTG0ACT.class);
                return;
            }
            if (baseResult.getCode() != 200) {
                if (baseResult.getCode() != 2022) {
                    if (baseResult.getCode() == 202) {
                        MTM0ACT.this.w0();
                        return;
                    }
                    Bundle bundle = new Bundle();
                    bundle.putInt("status", 0);
                    bundle.putSerializable("myBorrow", MTM0ACT.this.H);
                    bundle.putString("msg", baseResult.getMessage());
                    MTM0ACT.this.e0(MT1ACT.class, bundle);
                    return;
                }
                Bundle bundle2 = new Bundle();
                bundle2.putInt("status", 2);
                bundle2.putString("msg", MTM0ACT.this.H.getRepaymentAmount() + "");
                bundle2.putSerializable("myBorrow", MTM0ACT.this.H);
                MTM0ACT.this.e0(MT1ACT.class, bundle2);
                return;
            }
            String message = baseResult.getMessage();
            Result result = baseResult.getResult();
            if (result != null && !TextUtils.isEmpty(result.getPayUrl())) {
                String payUrl = result.getPayUrl();
                Bundle bundle3 = new Bundle();
                bundle3.putString("title", MTM0ACT.this.getResources().getString(l.pay));
                bundle3.putString("url", payUrl);
                bundle3.putSerializable("myBorrow", MTM0ACT.this.H);
                MTM0ACT.this.c0(message);
                MTM0ACT.this.e0(MT7ACT.class, bundle3);
                MTM0ACT.this.finish();
                return;
            }
            Bundle bundle4 = new Bundle();
            bundle4.putInt("status", 1);
            bundle4.putString("msg", MTM0ACT.this.H.getRepaymentAmount() + "");
            bundle4.putSerializable("myBorrow", MTM0ACT.this.H);
            MTM0ACT.this.w.d("Status", "登录");
            MTM0ACT.this.e0(MT1ACT.class, bundle4);
        }
    }

    public class d implements c.a {

        public final LoginPwdDialog f4049a;

        public d(LoginPwdDialog loginPwdDialog) {
            this.f4049a = loginPwdDialog;
        }

        @Override
        public void a(View view, String str) {
            if (d.b.a.r.i.b(str)) {
                return;
            }
            MTM0ACT.this.t0(str);
            this.f4049a.e();
        }
    }

    public class e extends h<BaseResult<PostponeBean>> {
        public e(Context context, boolean z) {
            super(context, z);
        }

        @Override
        public void a(String str) {
            MTM0ACT.this.c0(str);
            Bundle bundle = new Bundle();
            bundle.putInt("status", 0);
            bundle.putString("msg", str);
            bundle.putString("ORDERID", MTM0ACT.this.J);
            MTM0ACT.this.e0(MT2ACT.class, bundle);
        }

        @Override
        public void b(BaseResult<PostponeBean> baseResult) {
            if (baseResult.getCode() == 202) {
                MTM0ACT.this.w0();
                return;
            }
            PostponeBean result = baseResult.getResult();
            String payUrl = result.getPayUrl();
            if (!TextUtils.isEmpty(payUrl)) {
                Bundle bundle = new Bundle();
                bundle.putString("title", MTM0ACT.this.getResources().getString(l.renewal));
                bundle.putString("url", payUrl);
                bundle.putSerializable("myBorrow", result);
                MTM0ACT.this.e0(MT7ACT.class, bundle);
                MTM0ACT.this.finish();
                return;
            }
            Bundle bundle2 = new Bundle();
            bundle2.putInt("status", 1);
            if (result != null) {
                if (result.getOrderNo() != null) {
                    MTM0ACT.this.J = result.getOrderNo();
                }
                bundle2.putSerializable("postponeBean", result);
            } else {
                bundle2.putString("msg", MTM0ACT.this.getResources().getString(l.return_null));
            }
            bundle2.putString("ORDERID", MTM0ACT.this.J);
            MTM0ACT.this.e0(MT2ACT.class, bundle2);
        }
    }

    public class f extends h<BaseResult> {
        public f(Context context, boolean z) {
            super(context, z);
        }

        public static void f(d.i.c.c.d dVar, BaseResult baseResult) {
            dVar.a();
            if (baseResult.getCode() == 200) {
                ((BMAG01ACT) d.b.a.n.c.a.f().e(BMAG01ACT.class)).m0(0);
                d.b.a.n.c.a.f().h(BMAG01ACT.class);
            } else {
                ((BMAG01ACT) d.b.a.n.c.a.f().e(BMAG01ACT.class)).m0(1);
                d.b.a.n.c.a.f().h(BMAG01ACT.class);
            }
        }

        @Override
        public void a(String str) {
            new n().d(MTM0ACT.this, str);
        }

        @Override
        public void b(final BaseResult baseResult) {
            final d.i.c.c.d dVar = new d.i.c.c.d(MTM0ACT.this.v, 2131493266);
            ((TextView) dVar.b(2131297073)).setText(baseResult.getMessage());
            dVar.f(new d.a() {
                @Override
                public final void a() {
                    d.i.c.c.d.this.a();
                }
            });
            dVar.g(new d.b() {
                @Override
                public final void a() {
                    MTM0ACT.f.f(d.i.c.c.d.this, baseResult);
                }
            });
            dVar.h();
        }
    }

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

    @Override
    public int M() {
        return 2131492899;
    }

    @Override
    public void O() {
    }

    @Override
    public void P(Bundle bundle) {
        Bundle extras = getIntent().getExtras();
        if (extras != null) {
            int i2 = extras.getInt("TYPE", 1);
            this.G = i2;
            if (i2 == 1) {
                MyBorrowBean myBorrowBean = (MyBorrowBean) extras.getSerializable("myBorrow");
                this.H = myBorrowBean;
                this.J = myBorrowBean.getOrderNo();
            } else {
                PostponeBean postponeBean = (PostponeBean) extras.getSerializable("myBorrow");
                this.I = postponeBean;
                this.J = postponeBean.getOrderNo();
            }
        }
        this.K = new d.i.b.c.c(this.v, 2131493280, this.L);
        this.recycleView.setLayoutManager(new LinearLayoutManager(this.v));
        this.recycleView.setAdapter(this.K);
        this.K.j(new a(extras));
        u0(true);
    }

    @Override
    public void R() {
    }

    @Override
    public void T() {
        u0(false);
    }

    public void t0(String str) {
        VerifyCodeBean verifyCodeBean = new VerifyCodeBean();
        verifyCodeBean.verifyCode = str;
        d.i.b.d.a.a.a().O(verifyCodeBean).a(d.b.a.n.d.d.a()).s(new f(this, false));
    }

    public final void u0(boolean z) {
        this.w.a(d.i.b.d.a.a.a().U().a(d.b.a.n.d.b.c()).s(new b(this.v, z)));
    }

    public void v0(int i2) {
        if (ComNetWorkUtil.b(this.v)) {
            MyBorrowBean myBorrowBean = this.H;
            if (myBorrowBean == null) {
                c0(getResources().getString(l.net_error));
                return;
            }
            myBorrowBean.setThirdChannelId(i2);
            String r = new d.l.b.e().r(this.H);
            long currentTimeMillis = System.currentTimeMillis();
            String uuid = UUID.randomUUID().toString();
            String str = r + "@" + uuid + "@" + currentTimeMillis;
            String b2 = d.b.a.r.h.c().b(str + "@" + d.b.a.r.e.a(str, "f4qgkb85q4pMRMChLeC7uSn2wwTWGXrs"));
            StringBuilder sb = new StringBuilder();
            sb.append(currentTimeMillis);
            sb.append("");
            this.w.a(d.i.b.d.a.a.a().b0(new EncForm(b2, uuid, sb.toString())).a(d.b.a.n.d.d.a()).s(new c(this.v, true)));
        }
    }

    public final void w0() {
        LoginPwdDialog u = LoginPwdDialog.u((String) j.b("PHONE", ""));
        u.r(new d(u));
        b.l.a.n a2 = m().a();
        a2.d(u, "LoginPwdDialog");
        a2.j();
    }

    public final void x0(int i2) {
        PostponeBean postponeBean = this.I;
        if (postponeBean != null) {
            postponeBean.setThirdChannelId(i2);
            String r = new d.l.b.e().r(this.I);
            long currentTimeMillis = System.currentTimeMillis();
            String uuid = UUID.randomUUID().toString();
            String str = r + "@" + uuid + "@" + currentTimeMillis;
            String b2 = d.b.a.r.h.c().b(str + "@" + d.b.a.r.e.a(str, "f4qgkb85q4pMRMChLeC7uSn2wwTWGXrs"));
            StringBuilder sb = new StringBuilder();
            sb.append(currentTimeMillis);
            sb.append("");
            this.w.a(d.i.b.d.a.a.a().X(new EncForm(b2, uuid, sb.toString())).a(d.b.a.n.d.d.a()).s(new e(this.v, true)));
        }
    }
}