正在查看: klikUMKM v2.0.1 应用的 l.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: klikUMKM v2.0.1 应用的 l.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.yx.credit.indonesia.ui.delegate;
import com.yx.credit.base.entity.NetResponse;
import com.yx.credit.indonesia.http.entity.Children;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.b0;
import qb.p0;
public final class l extends ub.i implements Function2 {
final Function1<ArrayList<Children>, Unit> $function;
final String $id;
int label;
final u this$0;
public l(u uVar, String str, Function1<? super ArrayList<Children>, Unit> function1, tb.a aVar) {
super(2, aVar);
this.this$0 = uVar;
this.$id = str;
this.$function = function1;
}
@Override
public final tb.a create(Object obj, tb.a aVar) {
return new l(this.this$0, this.$id, this.$function, aVar);
}
@Override
public final Object invokeSuspend(Object obj) {
String str;
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("parentId", this.$id));
this.label = 1;
obj = gVar.b("https://api.klikumkm.co.id/api/indo/area/villages", b3, String.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() && (str = (String) netResponse.getData()) != null) {
Function1<ArrayList<Children>, Unit> function1 = this.$function;
List parseArray = com.alibaba.fastjson.a.parseArray(str, Children.class);
Intrinsics.checkNotNull(parseArray, "null cannot be cast to non-null type java.util.ArrayList<com.yx.credit.indonesia.http.entity.Children>");
function1.invoke((ArrayList) parseArray);
}
this.this$0.f7626b.postValue(Boolean.FALSE);
return Unit.a;
}
@Override
public final Object invoke(b0 b0Var, tb.a aVar) {
return ((l) create(b0Var, aVar)).invokeSuspend(Unit.a);
}
}