APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:造梦次元
版本号:1.1.73
包名称:com.ideaflow.zmcy

MD5 校验值:290b0e4cd89c7a20355df0a13ec24559

反编译源代码说明

StatisticDataHandler$uploadDuration$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 com.jstudio.jkit.TimeKit;
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.Boxing;
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$uploadDuration$1", f = "Statistic.kt", i = {}, l = {224}, m = "invokeSuspend", n = {}, s = {})
public final class StatisticDataHandler$uploadDuration$1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
    final long $closeTime;
    final String $startupEnvId;
    final long $startupTime;
    int label;

    public StatisticDataHandler$uploadDuration$1(String str, long j, long j2, Continuation<? super StatisticDataHandler$uploadDuration$1> continuation) {
        super(2, continuation);
        this.$startupEnvId = str;
        this.$startupTime = j;
        this.$closeTime = j2;
    }

    @Override
    public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
        return new StatisticDataHandler$uploadDuration$1(this.$startupEnvId, this.$startupTime, this.$closeTime, continuation);
    }

    @Override
    public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
        return ((StatisticDataHandler$uploadDuration$1) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE);
    }

    @Override
    public final Object invokeSuspend(Object obj) {
        String str;
        Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
        int i = this.label;
        if (i == 0) {
            ResultKt.throwOnFailure(obj);
            User user = UserConfigMMKV.INSTANCE.getUser();
            String id = user != null ? user.getId() : null;
            HashMap hashMap = new HashMap();
            String str2 = id;
            if (str2 != null && str2.length() != 0) {
                Intrinsics.checkNotNull(id);
                hashMap.put("user_id", id);
            }
            HashMap hashMap2 = hashMap;
            String str3 = this.$startupEnvId;
            if (str3 == null) {
                str3 = StatisticDataHandler.INSTANCE.getStartupEnvironmentId();
            }
            hashMap2.put("startup_environment_id", str3);
            hashMap2.put("startup_time", TimeKit.toPatternString(this.$startupTime, "yyyy-MM-dd HH:mm:ss"));
            hashMap2.put("close_time", TimeKit.toPatternString(this.$closeTime, "yyyy-MM-dd HH:mm:ss"));
            hashMap2.put("test", Boxing.boxInt(BuildToolKitKt.isTestEnvironment() ? 1 : 0));
            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/ds_duration_app", 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 companion = LogKit.INSTANCE;
            str = StatisticDataHandler.tag;
            Intrinsics.checkNotNullExpressionValue(str, "access$getTag$p(...)");
            companion.d(str, "****** upload duration statistic success");
        }
        return Unit.INSTANCE;
    }
}