From c3403a335f08c823fd2d29189b92c1e5b345311f Mon Sep 17 00:00:00 2001 From: huyufei Date: Fri, 31 May 2024 14:31:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=84=E8=8C=83=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E6=8E=A5=E5=8F=A3=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Code/SDK/GuruSDK.Analytics.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Runtime/Code/SDK/GuruSDK.Analytics.cs b/Runtime/Code/SDK/GuruSDK.Analytics.cs index 2e8e253..085bb62 100644 --- a/Runtime/Code/SDK/GuruSDK.Analytics.cs +++ b/Runtime/Code/SDK/GuruSDK.Analytics.cs @@ -390,7 +390,7 @@ namespace Guru /// 上报用户全部的 Coin (当前值) /// /// - public static void SetUserCoins(int coins) + public static void SetUserCoin(int coins) { SetUserProperty(Consts.PropertyCoin, $"{coins}"); } @@ -399,7 +399,7 @@ namespace Guru /// 上报用户免费金币的 数量 (累加值) /// /// - public static void SetUserNonIapCoins(int freeCoins) + public static void SetUserNonIapCoin(int freeCoins) { SetUserProperty(Consts.PropertyNonIAPCoin, $"{freeCoins}"); } @@ -408,7 +408,7 @@ namespace Guru /// 上报用户付费金币的 数量 (累加值) /// /// - public static void SetUserPaidCoins(int paidCoins) + public static void SetUserIapCoin(int paidCoins) { SetUserProperty(Consts.PropertyIAPCoin, $"{paidCoins}"); } @@ -474,13 +474,13 @@ namespace Guru SetUserProperty(Consts.PropertyDeviceID, DeviceId); // device_id if(!HasUserPropertyKey(Consts.PropertyIAPCoin)) - SetUserPaidCoins(0); // iap_coin + SetUserIapCoin(0); // iap_coin if(!HasUserPropertyKey(Consts.PropertyNonIAPCoin)) - SetUserNonIapCoins(0); // non_iap_coin + SetUserNonIapCoin(0); // non_iap_coin if(!HasUserPropertyKey(Consts.PropertyCoin)) - SetUserCoins(0);// coin + SetUserCoin(0);// coin if (!HasUserPropertyKey(Consts.PropertyGrade)) SetUserGrade(0); // grade