diff --git a/Runtime/Code/SDK/GuruSDK.Analytics.cs b/Runtime/Code/SDK/GuruSDK.Analytics.cs index 287d092..2d9e9fe 100644 --- a/Runtime/Code/SDK/GuruSDK.Analytics.cs +++ b/Runtime/Code/SDK/GuruSDK.Analytics.cs @@ -882,8 +882,7 @@ namespace Guru { Analytics.SpendVirtualCurrency(currencyName, value, balance, category, itemName, levelName, scene, extra); } - - + /// /// 消耗 Boost 道具 /// @@ -895,11 +894,11 @@ namespace Guru /// /// /// - public static void LogSpendVirtualCurrencyBoost(string currencyName, int value, int balance, string itemName = "", + public static void LogSpendVirtualCurrencyAsBoost(string currencyName, int value, int balance, string itemName = "", string levelName = "", string scene = "", Dictionary extra = null) { - string item_category = "boost"; - Analytics.SpendVirtualCurrency(currencyName, value, balance, item_category, itemName, levelName, scene, extra); + string category = Consts.CurrencyCategoryBoost; + Analytics.SpendVirtualCurrency(currencyName, value, balance, category, itemName, levelName, scene, extra); } /// @@ -915,7 +914,8 @@ namespace Guru int value, int balance, string levelName = "", string scene = "", Dictionary extra = null) { - LogSpendVirtualCurrencyWithProps(currencyName, new string[] {prop}, value, balance, levelName, scene, extra); + string category = Consts.CurrencyCategoryProp; + LogSpendVirtualCurrency(currencyName, value, balance, category, prop, levelName, scene, extra); } /// diff --git a/Runtime/Code/SDK/GuruSDK.Const.cs b/Runtime/Code/SDK/GuruSDK.Const.cs index 7889ce5..eb3c8eb 100644 --- a/Runtime/Code/SDK/GuruSDK.Const.cs +++ b/Runtime/Code/SDK/GuruSDK.Const.cs @@ -259,7 +259,7 @@ namespace Guru public const string CurrencyCategoryProp = "prop"; // prop public const string CurrencyCategoryProps = "props"; // props public const string CurrencyCategoryBundle = "bundle"; // prop groups - + public const string CurrencyCategoryBoost = "boost"; // boost // SDK public const string EventSDKInfo = "sdk_info";