正在查看: Easycash v3.75.13 应用的 EKycActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Easycash v3.75.13 应用的 EKycActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.fintopia.lender.module.rdl;
import android.annotation.SuppressLint;
import android.content.DialogInterface;
import android.view.KeyEvent;
import android.view.Menu;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.fintopia.lender.R;
import com.fintopia.lender.module.baseui.LenderCommonActivity;
import com.fintopia.lender.module.ktp.SubmitKtpActivity;
import com.fintopia.lender.module.livecheck.LiveCheckPreviewActivity;
import com.fintopia.lender.module.maintab.AuthHelper;
import com.fintopia.lender.module.network.ILenderApiRoutes;
import com.fintopia.lender.module.rdl.EKycActivity;
import com.fintopia.lender.module.rdl.model.RealNameVerificationResponseV2;
import com.fintopia.lender.widget.LenderSingleButtonDialog;
import com.fintopia.livenessdetection.facev5.models.LiveDetectionArgs;
import com.lingyue.idnbaselib.framework.lifecycle.LifecycleEvent;
import com.lingyue.idnbaselib.model.IdnObserver;
import com.sensorsdata.analytics.android.autotrack.aop.SensorsDataAutoTrackHelper;
import com.sensorsdata.analytics.android.sdk.SensorsDataInstrumented;
import com.veda.android.bananalibrary.net.ICallBack;
import com.yangqianguan.statistics.AutoTrackHelper;
import io.reactivex.disposables.Disposable;
import java.text.MessageFormat;
import java.util.ArrayList;
public class EKycActivity extends LenderCommonActivity {
class AnonymousClass1 extends IdnObserver<RealNameVerificationResponseV2> {
AnonymousClass1(ICallBack iCallBack) {
super(iCallBack);
}
public void b() {
EKycActivity.this.finish();
}
public void onSuccess(RealNameVerificationResponseV2 realNameVerificationResponseV2) {
EKycActivity.this.dismissLoadingDialog();
int i = AnonymousClass2.a[realNameVerificationResponseV2.body.status.ordinal()];
if (i == 1) {
EKycActivity.this.S();
} else if (i == 2) {
AuthHelper.f(EKycActivity.this, new Runnable() {
@Override
public final void run() {
EKycActivity.AnonymousClass1.this.b();
}
});
} else {
if (i != 3) {
return;
}
EKycActivity.this.R(realNameVerificationResponseV2);
}
}
}
static class AnonymousClass2 {
static final int[] a;
static final int[] b;
static {
int[] iArr = new int[RealNameVerificationResponseV2.AuthStep.values().length];
b = iArr;
try {
iArr[RealNameVerificationResponseV2.AuthStep.UPLOAD_IDENTITY.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
b[RealNameVerificationResponseV2.AuthStep.UPLOAD_LIVING_INFO.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
int[] iArr2 = new int[RealNameVerificationResponseV2.EKycStatus.values().length];
a = iArr2;
try {
iArr2[RealNameVerificationResponseV2.EKycStatus.SUCCESS.ordinal()] = 1;
} catch (NoSuchFieldError unused3) {
}
try {
a[RealNameVerificationResponseV2.EKycStatus.FAILED.ordinal()] = 2;
} catch (NoSuchFieldError unused4) {
}
try {
a[RealNameVerificationResponseV2.EKycStatus.NEED_MODIFY.ordinal()] = 3;
} catch (NoSuchFieldError unused5) {
}
}
}
public void R(final RealNameVerificationResponseV2 realNameVerificationResponseV2) {
LenderSingleButtonDialog i = LenderSingleButtonDialog.d(this).k("dialog_ekyc_failed").h(3).g(MessageFormat.format(getString(R.string.lender_ekyc_failed_reason), realNameVerificationResponseV2.body.errorMessage)).e(R.string.lender_confirm).i(new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i2) {
EKycActivity.this.V(realNameVerificationResponseV2, dialogInterface, i2);
}
});
i.setOnKeyListener(new DialogInterface.OnKeyListener() {
@Override
public final boolean onKey(DialogInterface dialogInterface, int i2, KeyEvent keyEvent) {
boolean W;
W = EKycActivity.this.W(dialogInterface, i2, keyEvent);
return W;
}
});
i.show();
}
public void S() {
LenderSingleButtonDialog i = LenderSingleButtonDialog.d(this).k("dialog_opening_rdl").h(3).f(R.string.lender_opening_dialog_text).e(R.string.lender_view_product).i(new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i2) {
EKycActivity.this.Y(dialogInterface, i2);
}
});
i.setOnKeyListener(new DialogInterface.OnKeyListener() {
@Override
public final boolean onKey(DialogInterface dialogInterface, int i2, KeyEvent keyEvent) {
boolean Z;
Z = EKycActivity.this.Z(dialogInterface, i2, keyEvent);
return Z;
}
});
i.show();
}
private void T() {
LiveCheckPreviewActivity.startECLiveCheckPreviewActivity(this, new LiveDetectionArgs(6, this.userSession.b().b, null));
finish();
}
private void U(RealNameVerificationResponseV2 realNameVerificationResponseV2) {
int i = AnonymousClass2.b[realNameVerificationResponseV2.body.authStep.ordinal()];
if (i == 1) {
SubmitKtpActivity.startSubmitKtpActivity(this, new ArrayList(realNameVerificationResponseV2.body.errorFields));
finish();
} else {
if (i != 2) {
return;
}
T();
}
}
@SensorsDataInstrumented
public void V(RealNameVerificationResponseV2 realNameVerificationResponseV2, DialogInterface dialogInterface, int i) {
dialogInterface.dismiss();
U(realNameVerificationResponseV2);
SensorsDataAutoTrackHelper.trackDialog(dialogInterface, i);
AutoTrackHelper.trackViewOnClick(dialogInterface, i);
}
public boolean W(DialogInterface dialogInterface, int i, KeyEvent keyEvent) {
if (i != 4) {
return false;
}
dialogInterface.dismiss();
finish();
return true;
}
public void X() {
finish();
}
@SensorsDataInstrumented
public void Y(DialogInterface dialogInterface, int i) {
dialogInterface.dismiss();
AuthHelper.f(this, new Runnable() {
@Override
public final void run() {
EKycActivity.this.X();
}
});
SensorsDataAutoTrackHelper.trackDialog(dialogInterface, i);
AutoTrackHelper.trackViewOnClick(dialogInterface, i);
}
public boolean Z(DialogInterface dialogInterface, int i, KeyEvent keyEvent) {
if (i != 4) {
return false;
}
dialogInterface.dismiss();
finish();
return true;
}
private void a0() {
showLoadingDialog();
((ILenderApiRoutes) this.apiHelper.a()).q0().a(new AnonymousClass1(this));
}
@Override
public int getLayoutID() {
return R.layout.lender_layout_ekyc;
}
@Override
protected void init() {
super.init();
a0();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
return false;
}
@Override
public Disposable runOnActiveEvent(Runnable runnable) {
return com.lingyue.idnbaselib.framework.lifecycle.m.a(this, runnable);
}
@Override
@SuppressLint({"CheckResult"})
public Disposable runOnCreated(@NonNull Runnable runnable) {
return com.lingyue.idnbaselib.framework.lifecycle.m.b(this, runnable);
}
@Override
@SuppressLint({"CheckResult"})
public Disposable runOnDestroy(@NonNull Runnable runnable) {
return com.lingyue.idnbaselib.framework.lifecycle.m.c(this, runnable);
}
@Override
@SuppressLint({"CheckResult"})
public Disposable runOnEvent(@NonNull LifecycleEvent lifecycleEvent, @Nullable Runnable runnable) {
return com.lingyue.idnbaselib.framework.lifecycle.m.d(this, lifecycleEvent, runnable);
}
@Override
public Disposable runOnEvents(@NonNull LifecycleEvent[] lifecycleEventArr, @Nullable Runnable runnable) {
return com.lingyue.idnbaselib.framework.lifecycle.m.e(this, lifecycleEventArr, runnable);
}
}