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

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


package com.free.vpn.proxy.hotspot.ui.main.share;

import android.content.SharedPreferences;
import androidx.compose.runtime.internal.StabilityInferred;
import androidx.lifecycle.ViewModel;
import com.free.vpn.proxy.hotspot.a9;
import com.free.vpn.proxy.hotspot.data.model.auth.Account;
import com.free.vpn.proxy.hotspot.data.model.auth.Subscription;
import com.free.vpn.proxy.hotspot.e9;
import com.free.vpn.proxy.hotspot.ih1;
import com.free.vpn.proxy.hotspot.to;
import com.free.vpn.proxy.hotspot.zs4;
import kotlin.Metadata;

@StabilityInferred(parameters = 0)
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\t\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0006\b\u0007\u0018\u00002\u00020\u0001B\u0011\b\u0007\u0012\u0006\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\r\u0010\u000eR\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010\u0004R\u0011\u0010\b\u001a\u00020\u00058F¢\u0006\u0006\u001a\u0004\b\u0006\u0010\u0007R\u0011\u0010\f\u001a\u00020\t8F¢\u0006\u0006\u001a\u0004\b\n\u0010\u000b¨\u0006\u000f"}, d2 = {"Lcom/free/vpn/proxy/hotspot/ui/main/share/ShareVM;", "Landroidx/lifecycle/ViewModel;", "Lcom/free/vpn/proxy/hotspot/ih1;", "settings", "Lcom/free/vpn/proxy/hotspot/ih1;", "", "getInvitationCode", "()J", "invitationCode", "", "getAlternativeShareLink", "()Ljava/lang/String;", "alternativeShareLink", "<init>", "(Lcom/free/vpn/proxy/hotspot/ih1;)V", "app_chinaSeoDirectBlackRelease"}, k = 1, mv = {1, 8, 0})
public final class ShareVM extends ViewModel {
    public static final int $stable = 8;
    private final ih1 settings;

    public ShareVM(ih1 ih1Var) {
        zs4.o(ih1Var, "settings");
        this.settings = ih1Var;
    }

    public final String getAlternativeShareLink() {
        String str;
        SharedPreferences sharedPreferences = a9.a;
        SharedPreferences sharedPreferences2 = a9.a;
        if (sharedPreferences2 != null) {
            String str2 = "https://content.hongmengshijie.net/preland/registration_referral";
            String string = sharedPreferences2.getString("share_ref_link", "https://content.hongmengshijie.net/preland/registration_referral");
            if (string != null) {
                str2 = string;
            }
            Subscription v = ((e9) this.settings).v();
            if (v == null || (str = v.getOrderRef()) == null) {
                str = "";
            }
            return str2 + "?source=Referral&platform=Android&ref_id=" + str + "&shareToken=" + ((e9) this.settings).q();
        }
        zs4.s0("prefs");
        throw null;
    }

    public final long getInvitationCode() {
        Account account = (Account) ((e9) this.settings).n().getValue();
        return to.o0(account != null ? account.getInviteCode() : null, 0L);
    }
}