Fast Orange v3.5.3版本的 MD5 值为:33b91aba50c566533dfd683a85f79158

以下内容为反编译后的 i35.java 源代码,内容仅作参考


package com.free.vpn.proxy.hotspot;

import android.content.Context;
import com.free.vpn.proxy.hotspot.data.model.analytics.ProcessingDataEvent;
import com.free.vpn.proxy.hotspot.data.model.billing.Order;
import com.free.vpn.proxy.hotspot.data.model.billing.Processing;
import com.free.vpn.proxy.hotspot.data.model.billing.common.Currencies;
import com.free.vpn.proxy.hotspot.data.model.billing.yusopay.YusoPayCheckOrderRequest;
import com.free.vpn.proxy.hotspot.data.model.billing.yusopay.YusoPayCreateRequest;
import com.free.vpn.proxy.hotspot.data.model.config.PayMethod;
import com.free.vpn.proxy.hotspot.data.model.config.ProcessingEntity;
import com.free.vpn.proxy.hotspot.domain.feature.billing.BaseProcessingProvider;
import com.free.vpn.proxy.hotspot.domain.feature.billing.ProcessingResultRegistry;
import com.free.vpn.proxy.hotspot.domain.feature.metric.MetricManager;
import com.free.vpn.proxy.hotspot.ui.billing.subscription.base.BaseSubscriptionFragment;
import io.reactivex.Scheduler;
import io.reactivex.Single;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicLong;
import kotlin.jvm.functions.Function3;

public final class i35 extends BaseProcessingProvider {
    public static final int b = 0;
    public final Processing.Yusopay a;

    public i35(Context context, cj1 cj1Var, jx3 jx3Var, ih1 ih1Var, ProcessingResultRegistry processingResultRegistry) {
        super(context, cj1Var, jx3Var, ih1Var, processingResultRegistry);
        zs4.o(context, "context");
        zs4.o(cj1Var, "remoteRepository");
        zs4.o(jx3Var, "settingsStore");
        zs4.o(ih1Var, "settings");
        zs4.o(processingResultRegistry, "registry");
        this.a = Processing.Yusopay.INSTANCE;
    }

    public static void j(YusoPayCheckOrderRequest yusoPayCheckOrderRequest, AtomicLong atomicLong, ProcessingEntity processingEntity, Order order, boolean z, String str, String str2, String str3, String str4, int i) {
        String str5;
        String str6;
        String str7;
        if ((i & 64) != 0) {
            str5 = null;
        } else {
            str5 = str2;
        }
        if ((i & 128) != 0) {
            str6 = null;
        } else {
            str6 = str3;
        }
        if ((i & 256) != 0) {
            str7 = null;
        } else {
            str7 = str4;
        }
        MetricManager metricManager = MetricManager.INSTANCE;
        MetricManager.trackProcessingDataEvent(str, processingEntity, order, ex0.F(yusoPayCheckOrderRequest, true, false, 6), str5, str6, str7, System.currentTimeMillis() - atomicLong.get(), z);
    }

    @Override
    public final Single createOrder(ProcessingEntity processingEntity, Order order, PayMethod payMethod) {
        s10 s10Var;
        f24 f24Var;
        m24 l;
        wv2 wv2Var;
        zs4.o(processingEntity, "entity");
        zs4.o(order, BaseSubscriptionFragment.KEY_ORDER);
        zs4.o(payMethod, "selectedPayMethod");
        BaseProcessingProvider.prepareOrder$default(this, order, payMethod, processingEntity, null, 4, null);
        YusoPayCreateRequest create = YusoPayCreateRequest.INSTANCE.create(order, processingEntity, payMethod, ((e9) getSettings()).o(), ff1.F(), n10.a0(getContext()));
        int i = 1;
        int i2 = 6;
        Function3 provideAnalytics = provideAnalytics(order, processingEntity, ex0.F(create, true, false, 6));
        provideAnalytics.invoke(ProcessingDataEvent.ACT_CREATE_ORDER_REQUEST, null, null);
        eu2 eu2Var = new eu2(order);
        zt2 zt2Var = an1.a;
        if (zt2Var != null) {
            v10 d = new t10(new f6(4, (du2) zt2Var, eu2Var), i).d();
            Scheduler scheduler = nr3.c;
            s10 c = d.g(scheduler).c();
            if (f35.a[payMethod.ordinal()] == 1) {
                s10Var = c;
                l = BaseProcessingProvider.runQrRedirect$default(this, create.getCreateOrderUrl(), "document.getElementById('copy-btn').getAttribute('data-clipboard-text').toString()", provideAnalytics, null, null, false, 56, null).l(i7.a());
                wv2Var = new wv2(new g35(this, order, processingEntity, provideAnalytics, 0), 24);
            } else {
                s10Var = c;
                if (getAlipayQrMethod()) {
                    l = BaseProcessingProvider.runQrRedirect$default(this, create.getCreateOrderUrl(), "document.getElementById('J_qrCode').getAttribute('value').toString()", provideAnalytics, new vf3("https://excashier.alipay.com/"), null, false, 48, null).l(i7.a());
                    wv2Var = new wv2(new g35(this, order, processingEntity, provideAnalytics, 1), 25);
                } else {
                    Single runDeeplinkRedirect$default = BaseProcessingProvider.runDeeplinkRedirect$default(this, create.getCreateOrderUrl(), provideAnalytics, null, payMethod, 0L, false, 52, null);
                    wv2 wv2Var2 = new wv2(new n33(i2, this, provideAnalytics), 26);
                    runDeeplinkRedirect$default.getClass();
                    f24Var = new f24(runDeeplinkRedirect$default, wv2Var2, 0);
                    return s10Var.b(f24Var).l(scheduler);
                }
            }
            f24Var = new f24(l, wv2Var, 0);
            return s10Var.b(f24Var).l(scheduler);
        }
        zs4.s0("orderDao");
        throw null;
    }

    @Override
    public final Processing getProcessing() {
        return this.a;
    }

    @Override
    public final Single requestOrderStatus(ProcessingEntity processingEntity, Order order, boolean z) {
        zs4.o(processingEntity, "entity");
        zs4.o(order, BaseSubscriptionFragment.KEY_ORDER);
        AtomicBoolean atomicBoolean = new AtomicBoolean(false);
        AtomicLong atomicLong = new AtomicLong(System.currentTimeMillis());
        YusoPayCheckOrderRequest create = YusoPayCheckOrderRequest.INSTANCE.create(order, processingEntity);
        String currency = processingEntity.getCurrency();
        if (currency == null) {
            currency = Currencies.CNY;
        }
        String str = currency;
        j(create, atomicLong, processingEntity, order, z, ProcessingDataEvent.ACT_ORDER_STATUS_REQUEST, null, null, null, 448);
        Single checkYusoPayOrder = getRemoteRepository().checkYusoPayOrder(create);
        xy4 xy4Var = new xy4(new h35(create, atomicLong, processingEntity, order, z, 0), 16);
        checkYusoPayOrder.getClass();
        return new a24(new f24(n10.Q0(new f24(new a24(new a24(checkYusoPayOrder, xy4Var, 2), new xy4(new h35(create, atomicLong, processingEntity, order, z, 1), 17), 0), new wv2(new h35(create, atomicLong, processingEntity, order, z, 2), 22), 0), atomicBoolean), new wv2(new la1(str, processingEntity, 1), 23), 1), new xy4(new h35(create, atomicLong, processingEntity, order, z, 3), 18), 2).l(nr3.c);
    }
}