示例#1
0
    private void HandleBonusCode(string bonusCode)
    {
        FMLogger.vCore("deeplink bonus code " + bonusCode);
        BonusCodeData bonusCodeData = new BonusCodeData
        {
            BonusCode = bonusCode,
            ClaimTime = DateTime.UtcNow
        };

        if (!SharedData.Instance.AddBonusCode(bonusCodeData))
        {
            bonusCodeData.alreadyActivated = true;
            AnalyticsManager.BonusContentClaimUsedCode();
        }
        else
        {
            AnalyticsManager.BonusContentClaim(bonusCodeData.BonusCode);
        }
        AppState.BonusCode = bonusCodeData;
    }