正在查看: Your TV v2.0.2 应用的 C0163y3.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Your TV v2.0.2 应用的 C0163y3.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package G0;
import androidx.media3.exoplayer.rtsp.RtspHeaders;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.IntrinsicsKt;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlinx.coroutines.CoroutineScope;
import okhttp3.MediaType;
import okhttp3.Request;
import okhttp3.RequestBody;
import okhttp3.Response;
import okhttp3.ResponseBody;
import org.json.JSONObject;
public final class C0163y3 extends SuspendLambda implements X0.p {
public final String f1512a;
public C0163y3(Continuation continuation, String str) {
super(2, continuation);
this.f1512a = str;
}
@Override
public final Continuation create(Object obj, Continuation continuation) {
return new C0163y3(continuation, this.f1512a);
}
@Override
public final Object invoke(Object obj, Object obj2) {
return ((C0163y3) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(M0.k.f1656a);
}
@Override
public final Object invokeSuspend(Object obj) {
String str;
IntrinsicsKt.getCOROUTINE_SUSPENDED();
b.b.R(obj);
try {
C3 c3 = C3.f575a;
C0034a c0034a = C3.f583i;
if (c0034a == null) {
JSONObject jSONObject = new JSONObject();
jSONObject.put("success", false);
jSONObject.put("error", "API keys not loaded");
return jSONObject;
}
kotlin.jvm.internal.j.b(c0034a);
String str2 = c0034a.f980b;
C0034a c0034a2 = C3.f583i;
kotlin.jvm.internal.j.b(c0034a2);
String str3 = "https://api.cloudflare.com/client/v4/accounts/" + str2 + "/d1/database/" + c0034a2.f981c + "/query";
RequestBody create = RequestBody.Companion.create(this.f1512a, MediaType.Companion.get("application/json"));
create.contentLength();
Request.Builder post = new Request.Builder().url(str3).post(create);
C0034a c0034a3 = C3.f583i;
kotlin.jvm.internal.j.b(c0034a3);
Response execute = C3.f584j.newCall(post.header(RtspHeaders.AUTHORIZATION, "Bearer " + c0034a3.f979a).header(RtspHeaders.CONTENT_TYPE, "application/json").build()).execute();
ResponseBody body = execute.body();
if (body == null || (str = body.string()) == null) {
str = "{}";
}
execute.code();
if (!execute.isSuccessful()) {
execute.code();
}
return new JSONObject(str);
} catch (Exception e2) {
e2.getMessage();
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put("success", false);
jSONObject2.put("error", e2.getMessage());
return jSONObject2;
}
}
}