MD5 校验值:290b0e4cd89c7a20355df0a13ec24559
StatisticDataHandler$uploadSearchClickEvent$1.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package com.ideaflow.zmcy.statistic; import com.ideaflow.zmcy.entity.User; import com.ideaflow.zmcy.mmkv.UserConfigMMKV; import com.ideaflow.zmcy.network.HttpKitKt; import com.ideaflow.zmcy.tools.BuildToolKitKt; import com.jstudio.jkit.JsonKit; import com.jstudio.jkit.LogKit; import java.util.HashMap; import kotlin.Metadata; import kotlin.ResultKt; import kotlin.Unit; import kotlin.coroutines.Continuation; import kotlin.coroutines.intrinsics.IntrinsicsKt; import kotlin.coroutines.jvm.internal.DebugMetadata; import kotlin.coroutines.jvm.internal.SuspendLambda; import kotlin.jvm.functions.Function2; import kotlin.jvm.internal.Intrinsics; import kotlin.text.StringsKt; import kotlinx.coroutines.CoroutineScope; @Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\u008a@"}, d2 = {"Lkotlinx/coroutines/CoroutineScope;", "", "<anonymous>"}, k = 3, mv = {1, 9, 0}) @DebugMetadata(c = "com.ideaflow.zmcy.statistic.StatisticDataHandler$uploadSearchClickEvent$1", f = "Statistic.kt", i = {}, l = {292}, m = "invokeSuspend", n = {}, s = {}) public final class StatisticDataHandler$uploadSearchClickEvent$1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> { final String $contentId; final String $eventId; final String $keyword; final String $searchType; int label; public StatisticDataHandler$uploadSearchClickEvent$1(String str, String str2, String str3, String str4, Continuation<? super StatisticDataHandler$uploadSearchClickEvent$1> continuation) { super(2, continuation); this.$contentId = str; this.$eventId = str2; this.$keyword = str3; this.$searchType = str4; } @Override public final Continuation<Unit> create(Object obj, Continuation<?> continuation) { return new StatisticDataHandler$uploadSearchClickEvent$1(this.$contentId, this.$eventId, this.$keyword, this.$searchType, continuation); } @Override public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) { return ((StatisticDataHandler$uploadSearchClickEvent$1) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE); } @Override public final Object invokeSuspend(Object obj) { String str; String str2; String str3; Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED(); int i = this.label; try { if (i == 0) { ResultKt.throwOnFailure(obj); if (this.$contentId == null) { return Unit.INSTANCE; } User user = UserConfigMMKV.INSTANCE.getUser(); if (user == null) { return Unit.INSTANCE; } HashMap hashMap = new HashMap(); if (this.$eventId.length() > 0) { hashMap.put("event_id", this.$eventId); } hashMap.put("user_id", user.getId()); hashMap.put("keyword", this.$keyword); hashMap.put("selected_id", this.$contentId); hashMap.put("search_type", this.$searchType); LogKit.Companion companion = LogKit.INSTANCE; str = StatisticDataHandler.tag; Intrinsics.checkNotNullExpressionValue(str, "access$getTag$p(...)"); companion.d(str, "search click params: " + JsonKit.parseToJson(hashMap)); if (BuildToolKitKt.isDebugBuild()) { LogKit.Companion companion2 = LogKit.INSTANCE; str2 = StatisticDataHandler.tag; Intrinsics.checkNotNullExpressionValue(str2, "access$getTag$p(...)"); companion2.e(str2, "****** debug build, no need to upload search click event statistic"); return Unit.INSTANCE; } byte[] compressJson = StatisticDataHandler.INSTANCE.compressJson(JsonKit.parseToJson(hashMap)); if (compressJson == null) { return Unit.INSTANCE; } this.label = 1; obj = HttpKitKt.postZipData("https://cystat.ideaflow.pro/push/search_click", compressJson, this); if (obj == coroutine_suspended) { return coroutine_suspended; } } else { if (i != 1) { throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); } ResultKt.throwOnFailure(obj); } String str4 = (String) obj; if (str4 != null && StringsKt.contains$default((CharSequence) str4, (CharSequence) "success", false, 2, (Object) null)) { LogKit.Companion companion3 = LogKit.INSTANCE; str3 = StatisticDataHandler.tag; Intrinsics.checkNotNullExpressionValue(str3, "access$getTag$p(...)"); companion3.d(str3, "****** upload new search click success"); } } catch (Exception unused) { } return Unit.INSTANCE; } }