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

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


package com.free.vpn.proxy.hotspot;

import com.free.vpn.proxy.hotspot.data.model.analytics.ProcessingDataEvent;
import com.free.vpn.proxy.hotspot.data.model.auth.Account;
import com.free.vpn.proxy.hotspot.data.model.billing.Order;
import com.free.vpn.proxy.hotspot.data.model.billing.dalizf.DalizfCreateResponse;
import com.free.vpn.proxy.hotspot.data.model.billing.exceptions.ProcessingFailedException;
import com.free.vpn.proxy.hotspot.data.model.billing.futurra_back.FuturraBackCreateResponse;
import com.free.vpn.proxy.hotspot.data.model.billing.proxy.ProxyPayCreateRequest;
import com.free.vpn.proxy.hotspot.data.model.billing.proxy.ProxyPayCreateResponse;
import com.free.vpn.proxy.hotspot.data.model.billing.xxpay.XXCreateResponse;
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.metric.MetricManager;
import io.reactivex.Single;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicLong;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function3;

public final class mc0 extends a22 implements Function1 {
    public final int a;
    public final Object b;
    public final Object c;
    public final Order d;
    public final ProcessingEntity e;
    public final Object q;

    public mc0(o25 o25Var, Function3 function3, PayMethod payMethod, Order order, ProcessingEntity processingEntity) {
        super(1);
        this.a = 6;
        this.q = o25Var;
        this.c = function3;
        this.b = payMethod;
        this.d = order;
        this.e = processingEntity;
    }

    public final Single a(ProxyPayCreateResponse proxyPayCreateResponse) {
        int i = this.a;
        Object obj = this.c;
        Object obj2 = this.q;
        Object obj3 = this.b;
        switch (i) {
            case 4:
                zs4.o(proxyPayCreateResponse, "response");
                a93 a93Var = (a93) obj3;
                Order order = this.d;
                ProcessingEntity processingEntity = this.e;
                ProxyPayCreateRequest proxyPayCreateRequest = (ProxyPayCreateRequest) obj2;
                AtomicLong atomicLong = (AtomicLong) obj;
                int i2 = a93.b;
                a93Var.getClass();
                if (proxyPayCreateResponse.getSuccess()) {
                    MetricManager.trackProcessingDataEvent(ProcessingDataEvent.ACT_CREATE_ORDER_RESPONSE_VALIDATION, processingEntity, order, (r23 & 8) != 0 ? null : ex0.F(proxyPayCreateRequest, true, false, 6), (r23 & 16) != 0 ? null : ex0.F(proxyPayCreateResponse, false, false, 7), (r23 & 32) != 0 ? null : null, (r23 & 64) != 0 ? null : null, (r23 & 128) != 0 ? 0L : System.currentTimeMillis() - atomicLong.get(), (r23 & 256) != 0 ? false : false);
                    return Single.e(proxyPayCreateResponse);
                }
                MetricManager.trackProcessingDataEvent(ProcessingDataEvent.ACT_CREATE_ORDER_RESPONSE_VALIDATION_ERROR, processingEntity, order, (r23 & 8) != 0 ? null : ex0.F(proxyPayCreateRequest, true, false, 6), (r23 & 16) != 0 ? null : ex0.F(proxyPayCreateResponse, false, false, 7), (r23 & 32) != 0 ? null : null, (r23 & 64) != 0 ? null : null, (r23 & 128) != 0 ? 0L : System.currentTimeMillis() - atomicLong.get(), (r23 & 256) != 0 ? false : false);
                int responseCode = proxyPayCreateResponse.getResponseCode();
                String errorMessage = proxyPayCreateResponse.getErrorMessage();
                if (errorMessage == null) {
                    errorMessage = "";
                }
                return Single.d(new ProcessingFailedException(a93Var.a, responseCode, errorMessage));
            default:
                zs4.o(proxyPayCreateResponse, "response");
                if (t83.a[((PayMethod) obj3).ordinal()] == 1) {
                    a93 a93Var2 = (a93) obj2;
                    int i3 = a93.b;
                    a93Var2.getClass();
                    return new u14(new s83(a93Var2, this.d, this.e, proxyPayCreateResponse.getPayUrl(), (AtomicLong) obj), 0).m(60L, TimeUnit.SECONDS).l(i7.a());
                }
                return Single.e(proxyPayCreateResponse.getPayUrl());
        }
    }

    @Override
    public final Object invoke(Object obj) {
        ik3 ik3Var;
        Single single;
        int i = this.a;
        String str = "https://excashier.alipay.com/";
        int i2 = 1;
        Object obj2 = this.q;
        Object obj3 = this.c;
        Object obj4 = this.b;
        switch (i) {
            case 0:
                DalizfCreateResponse dalizfCreateResponse = (DalizfCreateResponse) obj;
                zs4.o(dalizfCreateResponse, "response");
                String F = ex0.F(dalizfCreateResponse, true, false, 6);
                PayMethod payMethod = (PayMethod) obj4;
                if (lc0.a[payMethod.ordinal()] == 1) {
                    return ((oc0) obj2).launchQrScreen(this.d, this.e, dalizfCreateResponse.getPayUrl(), (Function3) obj3, dalizfCreateResponse.getCode(), dalizfCreateResponse.getLogMessage(), F);
                }
                oc0 oc0Var = (oc0) obj2;
                if (oc0Var.getAlipayQrMethod()) {
                    String payUrl = dalizfCreateResponse.getPayUrl();
                    zs4.l(payUrl);
                    Function3 function3 = (Function3) obj3;
                    Single runQrRedirect$default = BaseProcessingProvider.runQrRedirect$default(oc0Var, payUrl, "document.getElementById('J_qrCode').getAttribute('value').toString()", function3, new vf3("https://excashier.alipay.com/"), F, false, 32, null);
                    ik3 ik3Var2 = new ik3(new kc0(oc0Var, this.d, this.e, function3, dalizfCreateResponse, F, 0), 13);
                    runQrRedirect$default.getClass();
                    return new f24(runQrRedirect$default, ik3Var2, 0);
                }
                String payUrl2 = dalizfCreateResponse.getPayUrl();
                zs4.l(payUrl2);
                Function3 function32 = (Function3) obj3;
                Single runDeeplinkRedirect$default = BaseProcessingProvider.runDeeplinkRedirect$default(oc0Var, payUrl2, function32, F, payMethod, 0L, false, 48, null);
                ik3 ik3Var3 = new ik3(new vu4(oc0Var, function32, F, i2), 14);
                runDeeplinkRedirect$default.getClass();
                return new f24(runDeeplinkRedirect$default, ik3Var3, 0);
            case 1:
                FuturraBackCreateResponse futurraBackCreateResponse = (FuturraBackCreateResponse) obj;
                zs4.o(futurraBackCreateResponse, "response");
                String F2 = ex0.F(futurraBackCreateResponse, false, false, 7);
                PayMethod payMethod2 = (PayMethod) obj4;
                int i3 = z81.a[payMethod2.ordinal()];
                int i4 = 2;
                if (i3 != 1) {
                    if (i3 != 2) {
                        return Single.d(new ProcessingFailedException(((c91) obj2).a, 0, BaseProcessingProvider.ERROR_UNSUPPORTED_PAY_METHOD));
                    }
                    return BaseProcessingProvider.launchQrScreen$default((c91) obj2, this.d, this.e, futurraBackCreateResponse.getLink(), (Function3) obj3, futurraBackCreateResponse.getErrorCode(), null, F2, 32, null);
                }
                c91 c91Var = (c91) obj2;
                String link = futurraBackCreateResponse.getLink();
                zs4.l(link);
                Function3 function33 = (Function3) obj3;
                Single runDeeplinkRedirect$default2 = BaseProcessingProvider.runDeeplinkRedirect$default(c91Var, link, function33, F2, payMethod2, 0L, false, 48, null);
                ik3 ik3Var4 = new ik3(new vu4(c91Var, function33, F2, i4), 17);
                runDeeplinkRedirect$default2.getClass();
                return new f24(runDeeplinkRedirect$default2, ik3Var4, 0);
            case 2:
                Account account = (Account) obj;
                zs4.o(account, "response");
                c91 c91Var2 = (c91) obj4;
                int i5 = c91.b;
                c91Var2.getClass();
                return new u14(new w81(c91Var2, account, this.d, this.e, (String) obj2, (AtomicLong) obj3), 0);
            case 3:
                String str2 = (String) obj;
                zs4.o(str2, "payUrl");
                PayMethod payMethod3 = (PayMethod) obj4;
                int i6 = ja1.a[payMethod3.ordinal()];
                ProcessingEntity processingEntity = this.e;
                if (i6 == 1) {
                    ma1 ma1Var = (ma1) obj2;
                    String wxQrRetrievalCode = processingEntity.getWxQrRetrievalCode();
                    if (wxQrRetrievalCode == null) {
                        wxQrRetrievalCode = "document.getElementById('clipboard_payurl').getAttribute('data-clipboard-text').toString()";
                    }
                    Function3 function34 = (Function3) obj3;
                    single = BaseProcessingProvider.runQrRedirect$default(ma1Var, str2, wxQrRetrievalCode, function34, null, null, false, 24, null).l(i7.a());
                    ik3Var = new ik3(new ia1(ma1Var, this.d, this.e, function34, 0), 22);
                } else {
                    ma1 ma1Var2 = (ma1) obj2;
                    int i7 = ma1.b;
                    if (ma1Var2.getAlipayQrMethod()) {
                        String aliQrRetrievalCode = processingEntity.getAliQrRetrievalCode();
                        if (aliQrRetrievalCode == null) {
                            aliQrRetrievalCode = "document.getElementById('J_qrCode').getAttribute('value').toString()";
                        }
                        String str3 = aliQrRetrievalCode;
                        String aliQrTriggerUrl = processingEntity.getAliQrTriggerUrl();
                        if (aliQrTriggerUrl != null) {
                            str = aliQrTriggerUrl;
                        }
                        Function3 function35 = (Function3) obj3;
                        single = BaseProcessingProvider.runQrRedirect$default(ma1Var2, str2, str3, function35, new vf3(str), null, false, 48, null).l(i7.a());
                        ik3Var = new ik3(new ia1(ma1Var2, this.d, this.e, function35, 1), 23);
                    } else {
                        Function3 function36 = (Function3) obj3;
                        Single runDeeplinkRedirect$default3 = BaseProcessingProvider.runDeeplinkRedirect$default(ma1Var2, str2, function36, null, payMethod3, 0L, false, 52, null);
                        ik3Var = new ik3(new n33(i2, ma1Var2, function36), 24);
                        single = runDeeplinkRedirect$default3;
                    }
                }
                single.getClass();
                return new f24(single, ik3Var, 0);
            case 4:
                return a((ProxyPayCreateResponse) obj);
            case 5:
                return a((ProxyPayCreateResponse) obj);
            default:
                XXCreateResponse xXCreateResponse = (XXCreateResponse) obj;
                zs4.o(xXCreateResponse, "response");
                String F3 = ex0.F(xXCreateResponse, true, false, 6);
                o25 o25Var = (o25) obj2;
                Function3 function37 = (Function3) obj3;
                Single runDeeplinkRedirect$default4 = BaseProcessingProvider.runDeeplinkRedirect$default(o25Var, xXCreateResponse.getPayUrl(), function37, F3, (PayMethod) obj4, 0L, false, 48, null);
                wv2 wv2Var = new wv2(new kc0(o25Var, this.d, this.e, function37, xXCreateResponse, F3, 4), 14);
                runDeeplinkRedirect$default4.getClass();
                return new f24(runDeeplinkRedirect$default4, wv2Var, 0);
        }
    }

    public mc0(PayMethod payMethod, c91 c91Var, Function3 function3, Order order, ProcessingEntity processingEntity) {
        super(1);
        this.a = 1;
        this.b = payMethod;
        this.q = c91Var;
        this.c = function3;
        this.d = order;
        this.e = processingEntity;
    }

    public mc0(PayMethod payMethod, ma1 ma1Var, ProcessingEntity processingEntity, Function3 function3, Order order) {
        super(1);
        this.a = 3;
        this.b = payMethod;
        this.q = ma1Var;
        this.e = processingEntity;
        this.c = function3;
        this.d = order;
    }

    public mc0(BaseProcessingProvider baseProcessingProvider, Order order, ProcessingEntity processingEntity, Object obj, AtomicLong atomicLong, int i) {
        super(1);
        this.a = i;
        this.b = baseProcessingProvider;
        this.d = order;
        this.e = processingEntity;
        this.q = obj;
        this.c = atomicLong;
    }

    public mc0(BaseProcessingProvider baseProcessingProvider, ProcessingEntity processingEntity, Order order, PayMethod payMethod, int i, Object obj) {
        super(1);
        this.a = i;
        this.b = payMethod;
        this.q = baseProcessingProvider;
        this.d = order;
        this.e = processingEntity;
        this.c = obj;
    }
}