正在查看: 多多分期 v4.1.2 应用的 MTT0Act.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 多多分期 v4.1.2 应用的 MTT0Act.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.duoduofenqi.ui.activitys;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
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.MTT0Act;
import com.duoduofenqi.ui.bean.EncForm;
import com.duoduofenqi.ui.bean.MyBorrowBean;
import com.duoduofenqi.ui.bean.OrederPayBean;
import com.duoduofenqi.ui.bean.PostponeBean;
import com.duoduofenqi.ui.bean.Result;
import com.duoduofenqi.ui.bean.VerifyCodeBean;
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 MTT0Act extends d.i.b.d.b.e {
public int G;
public MyBorrowBean H;
public PostponeBean I;
public String J;
public d.i.b.c.b K;
public List<OrederPayBean.ResultBean> L = new ArrayList();
public int M;
@BindView(i.recycleView)
public RecyclerView recycleView;
@BindView(2131299115)
public TextView tip;
@BindView(2131299147)
public TitleLayout title;
public class a implements b.c {
public a() {
}
@Override
public void a(View view, RecyclerView.c0 c0Var, int i2) {
if (i2 < 0 || i2 >= MTT0Act.this.L.size()) {
return;
}
MTT0Act.this.q0((OrederPayBean.ResultBean) MTT0Act.this.L.get(i2));
}
@Override
public boolean b(View view, RecyclerView.c0 c0Var, int i2) {
return false;
}
}
public class b extends h<List<OrederPayBean.ResultBean>> {
public b(Context context, boolean z) {
super(context, z);
}
@Override
public void a(String str) {
MTT0Act.this.c0(str);
}
@Override
public void b(List<OrederPayBean.ResultBean> list) {
if (list != null) {
MTT0Act.this.L.clear();
MTT0Act.this.K.l(list);
MTT0Act.this.K.notifyDataSetChanged();
MTT0Act.this.i0();
}
}
}
public class c extends h<BaseResult<Result>> {
public final OrederPayBean.ResultBean f4071g;
public c(Context context, boolean z, OrederPayBean.ResultBean resultBean) {
super(context, z);
this.f4071g = resultBean;
}
@Override
public void a(String str) {
Bundle bundle = new Bundle();
bundle.putInt("status", 0);
bundle.putString("msg", str);
MTT0Act.this.e0(MT1ACT.class, bundle);
}
@Override
public void b(BaseResult<Result> baseResult) {
if (baseResult.getCode() == 3039) {
MTT0Act.this.c0(baseResult.getMessage());
MTT0Act.this.d0(MTG0ACT.class);
return;
}
if (baseResult.getCode() == 200) {
String message = baseResult.getMessage();
String payUrl = baseResult.getResult().getPayUrl();
Bundle bundle = new Bundle();
bundle.putString("title", MTT0Act.this.getResources().getString(l.pay));
bundle.putString("url", payUrl);
bundle.putSerializable("myBorrow", MTT0Act.this.H);
Intent intent = new Intent("android.intent.action.VIEW");
if (this.f4071g.getJumpBorr() == 0 && intent.resolveActivity(d.b.a.a.a().getPackageManager()) != null) {
intent.setData(Uri.parse(payUrl));
MTT0Act.this.startActivity(intent);
return;
} else {
MTT0Act.this.c0(message);
MTT0Act.this.e0(MT7ACT.class, bundle);
MTT0Act.this.finish();
return;
}
}
if (baseResult.getCode() != 2022) {
if (baseResult.getCode() == 202) {
MTT0Act.this.s0();
return;
}
Bundle bundle2 = new Bundle();
bundle2.putInt("status", 0);
bundle2.putSerializable("myBorrow", MTT0Act.this.H);
bundle2.putString("msg", baseResult.getMessage());
MTT0Act.this.e0(MT1ACT.class, bundle2);
return;
}
Bundle bundle3 = new Bundle();
bundle3.putInt("status", 2);
bundle3.putString("msg", MTT0Act.this.H.getRepaymentAmount() + "");
bundle3.putSerializable("myBorrow", MTT0Act.this.H);
MTT0Act.this.e0(MT1ACT.class, bundle3);
}
}
public class d implements c.a {
public final LoginPwdDialog f4073a;
public d(LoginPwdDialog loginPwdDialog) {
this.f4073a = loginPwdDialog;
}
@Override
public void a(View view, String str) {
if (d.b.a.r.i.b(str)) {
return;
}
MTT0Act.this.o0(str);
this.f4073a.e();
}
}
public class e extends h<BaseResult<PostponeBean>> {
public final OrederPayBean.ResultBean f4075g;
public e(Context context, boolean z, OrederPayBean.ResultBean resultBean) {
super(context, z);
this.f4075g = resultBean;
}
@Override
public void a(String str) {
MTT0Act.this.c0(str);
Bundle bundle = new Bundle();
bundle.putInt("status", 0);
bundle.putString("msg", str);
bundle.putString("ORDERID", MTT0Act.this.J);
MTT0Act.this.e0(MT2ACT.class, bundle);
}
@Override
public void b(BaseResult<PostponeBean> baseResult) {
if (baseResult.getCode() == 202) {
MTT0Act.this.s0();
return;
}
if (baseResult.getCode() == 2029) {
MTT0Act.this.c0(baseResult.getMessage());
return;
}
if (baseResult.getCode() == 1112) {
MTT0Act.this.c0(baseResult.getMessage());
return;
}
PostponeBean result = baseResult.getResult();
if (result == null) {
return;
}
String payUrl = result.getPayUrl();
Bundle bundle = new Bundle();
bundle.putString("title", MTT0Act.this.getResources().getString(l.renewal));
bundle.putString("url", payUrl);
bundle.putSerializable("myBorrow", result);
Intent intent = new Intent("android.intent.action.VIEW");
if (this.f4075g.getJumpBorr() != 0 || intent.resolveActivity(d.b.a.a.a().getPackageManager()) == null) {
MTT0Act.this.e0(MT7ACT.class, bundle);
MTT0Act.this.finish();
} else {
intent.setData(Uri.parse(payUrl));
MTT0Act.this.startActivity(intent);
}
}
}
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(MTT0Act.this, str);
}
@Override
public void b(final BaseResult baseResult) {
final d.i.c.c.d dVar = new d.i.c.c.d(MTT0Act.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() {
MTT0Act.f.f(d.i.c.c.d.this, baseResult);
}
});
dVar.h();
}
}
@Override
public boolean I() {
return false;
}
@Override
public int M() {
return 2131492900;
}
@Override
public void O() {
}
@Override
public void P(Bundle bundle) {
Bundle extras = getIntent().getExtras();
if (extras != null) {
this.G = extras.getInt("TYPE", 1);
this.M = extras.getInt("id", 1);
if (this.G == 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.b(this.v, 2131493281, this.L);
this.recycleView.setLayoutManager(new LinearLayoutManager(this.v));
this.recycleView.setAdapter(this.K);
this.K.j(new a());
p0(this.M, true);
}
@Override
public void R() {
}
@Override
public void T() {
}
public void o0(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 p0(int i2, boolean z) {
this.w.a(d.i.b.d.a.a.a().I(i2).a(d.b.a.n.d.b.c()).s(new b(this.v, z)));
}
public void q0(OrederPayBean.ResultBean resultBean) {
resultBean.getId();
if (this.G == 1) {
r0(resultBean);
} else {
t0(resultBean);
}
}
public void r0(OrederPayBean.ResultBean resultBean) {
if (ComNetWorkUtil.b(this.v)) {
MyBorrowBean myBorrowBean = this.H;
if (myBorrowBean == null) {
c0(getResources().getString(l.net_error));
return;
}
myBorrowBean.setPayType(resultBean.getId());
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, resultBean)));
}
}
public final void s0() {
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 t0(OrederPayBean.ResultBean resultBean) {
PostponeBean postponeBean = this.I;
if (postponeBean != null) {
postponeBean.setPayType(resultBean.getId());
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, resultBean)));
}
}
}