导航菜单

页面标题

页面副标题

klikUMKM v2.0.1 - o.java 源代码

正在查看: klikUMKM v2.0.1 应用的 o.java JAVA 源代码文件

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


package com.yx.credit.indonesia.ui.delegate;

import com.yx.credit.base.entity.NetResponse;
import com.yx.credit.indonesia.http.entity.FaceLicense;
import java.util.Map;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlinx.coroutines.b0;
import qb.p0;

public final class o extends ub.i implements Function2 {
    final Function1<FaceLicense, Unit> $function;
    final int $isFromWithdraw;
    int label;
    final u this$0;

    public o(u uVar, int i10, Function1<? super FaceLicense, Unit> function1, tb.a aVar) {
        super(2, aVar);
        this.this$0 = uVar;
        this.$isFromWithdraw = i10;
        this.$function = function1;
    }

    @Override
    public final tb.a create(Object obj, tb.a aVar) {
        return new o(this.this$0, this.$isFromWithdraw, this.$function, aVar);
    }

    @Override
    public final Object invokeSuspend(Object obj) {
        FaceLicense faceLicense;
        kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
        int i10 = this.label;
        if (i10 == 0) {
            pb.r.b(obj);
            this.this$0.f7626b.postValue(Boolean.TRUE);
            com.yx.credit.base.net.g gVar = com.yx.credit.base.net.g.a;
            Map b3 = p0.b(new Pair("skenario", this.$isFromWithdraw == 2 ? "1" : "0"));
            this.label = 1;
            obj = gVar.b("https://api.klikumkm.co.id/api/indo/identity/face/getLicense", b3, FaceLicense.class, this);
            if (obj == aVar) {
                return aVar;
            }
        } else {
            if (i10 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            pb.r.b(obj);
        }
        NetResponse netResponse = (NetResponse) obj;
        if (netResponse.isSuccess() && (faceLicense = (FaceLicense) netResponse.getData()) != null) {
            Function1<FaceLicense, Unit> function1 = this.$function;
            if (faceLicense.getLeftTimes() <= 0) {
                uc.m.y("Jumlah percobaan pengenalan wajah telah mencapai batas atas hari ini. Silakan coba lagi besok.");
            } else {
                function1.invoke(faceLicense);
            }
        }
        this.this$0.f7626b.postValue(Boolean.FALSE);
        return Unit.a;
    }

    @Override
    public final Object invoke(b0 b0Var, tb.a aVar) {
        return ((o) create(b0Var, aVar)).invokeSuspend(Unit.a);
    }
}