private static string c0881b82407d67be10ed19a8b69dc797a()
    {
        string         text     = Localize.GetText("COINS_COUNT");
        UserAccountMgr local1   = SubSystem <UserAccountMgr> .cfd689ba95cb05e1458adf8457ab37a54;
        uint           num1     = local1.c08aab0b717c28869add34ab89fae61a5;
        string         newValue = num1.ToString();

        return(text.Replace("{1}", newValue));
    }
    private void cce55ab874645c60e2c713909a5c95fd0(Btn c2d8a6ba3ff04c35af5dbc5bb5c615b52)
    {
        float?nullable;

        c5499aa51b250adfeebe746167715ef8c.cd3d9f33d3ef09712052d53fc1f167e5f(ref nullable);
        bool flag2 = SubSystem <AudioMgr> .cfd689ba95cb05e1458adf8457ab37a54.SFX.Yes.Play(nullable);

        UserAccountMgr local6 = SubSystem <UserAccountMgr> .cfd689ba95cb05e1458adf8457ab37a54;

        if (!local6.c38440e5da1f3ad43e02a00af3eac609b)
        {
            UserAccountMgr local8 = SubSystem <UserAccountMgr> .cfd689ba95cb05e1458adf8457ab37a54;
            if (local8.c08aab0b717c28869add34ab89fae61a5 >= this.c91ccfc3aa09d6818c9d8a4f523716d6e)
            {
                StateBase base6 = base.caa7e398bd72d0a62a8fa9c93edbb74fa.GotoState(State <PlaySong_BuyingSong> .cfd689ba95cb05e1458adf8457ab37a54);
                return;
            }
Label_006F:
            switch (7)
            {
            case 0:
                goto Label_006F;
            }
            PlaySong_ShowMarketplace local9  = State <PlaySong_ShowMarketplace> .cfd689ba95cb05e1458adf8457ab37a54;
            UserAccountMgr           local10 = SubSystem <UserAccountMgr> .cfd689ba95cb05e1458adf8457ab37a54;
            uint num4 = local10.c08aab0b717c28869add34ab89fae61a5;
            local9.Configure(this.c29df49907877de440240adc2b4b21da7.c91ccfc3aa09d6818c9d8a4f523716d6e - num4);
            StateBase base5 = base.caa7e398bd72d0a62a8fa9c93edbb74fa.GotoState(State <PlaySong_ShowMarketplace> .cfd689ba95cb05e1458adf8457ab37a54);
            return;
        }
Label_002D:
        switch (7)
        {
        case 0:
            goto Label_002D;

        default:
        {
            if (1 == 0)
            {
            }
            StateMachine          machine4      = base.caa7e398bd72d0a62a8fa9c93edbb74fa;
            PlaySong_RequireLogin stateInstance = State <PlaySong_RequireLogin> .cfd689ba95cb05e1458adf8457ab37a54;
            StateBase             base4         = machine4.GotoState(stateInstance);
            break;
        }
        }
    }
    private static string cab7727bce9cf1b6c786fe6ea3a1b18f6()
    {
        // This item is obfuscated and can not be translated.
        UserAccountMgr local1 = SubSystem <UserAccountMgr> .cfd689ba95cb05e1458adf8457ab37a54;

        if (!local1.c38440e5da1f3ad43e02a00af3eac609b)
        {
            UserAccountMgr local2   = SubSystem <UserAccountMgr> .cfd689ba95cb05e1458adf8457ab37a54;
            string         newValue = local2.c9ca6420701ab599b5e838bc335912244;
            string         text2    = Localize.GetText("BUY_SONG_SUBTITLE").Replace("{66}", newValue);
            if (text2 || true)
            {
                string text3;
                return(text3);
            }
        }
        return(Localize.GetText("BUY_SONG_SUBTITLE_GUEST"));
    }
    public override void EnterState(StateBase priorState)
    {
        float?      nullable;
        GameplayMgr local1 = SubSystem <GameplayMgr> .cfd689ba95cb05e1458adf8457ab37a54;
        Song        song1  = local1.c65b4a583e7f6cd5e76b8b4d6a7b85b50;

        this.c29df49907877de440240adc2b4b21da7 = song1;
        base.EnterState(priorState);
        c5499aa51b250adfeebe746167715ef8c.cd3d9f33d3ef09712052d53fc1f167e5f(ref nullable);
        SubSystem <AudioMgr> .cfd689ba95cb05e1458adf8457ab37a54.Announcer.PromptBuyPremiumContent.Play(nullable);

        AnalyticsMgr    local2     = SubSystem <AnalyticsMgr> .cfd689ba95cb05e1458adf8457ab37a54;
        EventHitBuilder builder1   = new EventHitBuilder().SetEventCategory("PlaySong").SetEventAction("RequirePremium");
        string          eventLabel = this.c29df49907877de440240adc2b4b21da7.cd7680e8b14c2ac494b7e6a836f3febd7;
        EventHitBuilder builder2   = builder1.SetEventLabel(eventLabel);
        UserAccountMgr  local3     = SubSystem <UserAccountMgr> .cfd689ba95cb05e1458adf8457ab37a54;
        EventHitBuilder builder    = builder2.SetEventValue((long)local3.c08aab0b717c28869add34ab89fae61a5).SetCustomDimension(1, SubSystem <UserAccountMgr> .cfd689ba95cb05e1458adf8457ab37a54.c13a6f98599e34f034dd091dabbe0afec.ToString());

        local2.LogEvent(builder);
    }
예제 #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                var    isDebug = ConfigurationManager.AppSettings["IsDebug"];
                string ck      = GetParam("ck");
                if (ck == "default")
                {
                    SelectZone();
                }
                else
                {
                    if (!string.IsNullOrEmpty(ck))
                    {
                        try
                        {
                            //cookie是否正确
                            FormsAuthenticationTicket ticket            = FormsAuthentication.Decrypt(ck);
                            UserAccountEntity         userAccountEntity = UserAccountMgr.Parse(ticket.UserData);
                            accountName = userAccountEntity.Account;
                            //cookie正确时存入cookielist
                            //if (UserAccountMgr.CookieList.ContainsKey(accountName))
                            //    UserAccountMgr.CookieList[accountName] = ck;
                            //else
                            //    UserAccountMgr.CookieList.Add(accountName, ck);
                        }
                        catch (Exception)
                        {
                            ck = string.Empty;
                        }
                    }
                    else
                    {
                        if (ShareUtil.PlatformCode == "1758")
                        {
                            accountName = GetParam("state");
                        }
                    }

                    if (string.IsNullOrEmpty(accountName))
                    {
                        if (isDebug == "true")
                        {
                            Response.Redirect("Passport.aspx");
                        }
                        else
                        {
                            Response.Redirect("Ul.aspx");
                        }
                        Response.End();
                    }
                    else
                    {
                        cookie = ck;
                        v      = new Random().Next(1000, 10000).ToString();

                        zoneId = ShareUtil.ZoneId;
                        var zoneName  = UAFactory.Instance.ZoneName;
                        var zoneCache = CacheFactory.FunctionAppCache.GetZone(zoneName);
                        if (zoneCache == null)
                        {
                            Response.Redirect("Error.aspx?Message=no zone config,zonename:" + zoneName);
                            Response.End();
                            return;
                        }
                        var platformEntity = UAFactory.Instance.GetPlatform(zoneCache.PlatformCode);
                        if (platformEntity == null)
                        {
                            Response.Redirect("Error.aspx?Message=no platform config,PlatformCode:" +
                                              zoneCache.PlatformCode);
                            Response.End();
                            return;
                        }

                        GetPlant  = platformEntity.PlatformCode.ToLower();
                        GetHost   = Request.Url.AbsoluteUri.Split('?')[0].Replace("/Index.aspx", ""); //前端需要的域名
                        sid       = zoneCache.PlatformZoneName;
                        token     = GetParam("token");
                        device_id = GetParam("device_id");
                        uuid      = GetParam("uuid");
                        pf        = GetParam("pf");
                        pfUrl     = zoneCache.ChargeUrl.Replace("pf", pf == "" ? "h5_a8" : pf);
                        if (UAFactory.Instance.IsQunHei || UAFactory.Instance.IsTx)
                        {
                            pfUrl = zoneCache.Cdn;

                            skipUrl =
                                string.Format(
                                    "{0}?ck={1}&account={2}&plant={3}&httpRoot={4}&v={5}&sid={6}&token={7}&device_id={8}&pf={9}&isSelectZone=0",
                                    pfUrl, ck, accountName, GetPlant, GetHost, v, sid, token, device_id, pf);
                        }
                        else
                        {
                            skipUrl =
                                string.Format(
                                    "pfurl={0}&ck={1}&account={2}&plant={3}&httpRoot={4}&v={5}&sid={6}&token={7}&device_id={8}&pf={9}&isSelectZone=0",
                                    pfUrl, ck, accountName, GetPlant, GetHost, v, sid, token, device_id, pf);
                        }
                    }
                }
            }
        }