From c6d6a1f5d81472700d51901ed0dd6c7e87a87108 Mon Sep 17 00:00:00 2001 From: huyufei Date: Tue, 21 May 2024 16:54:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Google=20API=20?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E4=BC=A0uid=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Code/SDK/GuruSDK.IAP.cs | 4 ++-- Runtime/Code/SDK/GuruSDK.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Runtime/Code/SDK/GuruSDK.IAP.cs b/Runtime/Code/SDK/GuruSDK.IAP.cs index 0d19f28..c2d9adf 100644 --- a/Runtime/Code/SDK/GuruSDK.IAP.cs +++ b/Runtime/Code/SDK/GuruSDK.IAP.cs @@ -23,7 +23,7 @@ namespace Guru /// /// 初始化IAP 功能 /// - public static void InitIAP(string uuid, byte[] googleKey, byte[] appleRootCerts) + public static void InitIAP(string uid, byte[] googleKey, byte[] appleRootCerts) { GuruIAP.Instance.OnInitResult += OnIAPInitResult; GuruIAP.Instance.OnRestored += OnRestored; @@ -34,7 +34,7 @@ namespace Guru Callbacks.IAP._onIAPInitStart?.Invoke(); // 初始化之前进行调用 - GuruIAP.Instance.InitWithKeys(uuid, googleKey, appleRootCerts, IsDebugMode); + GuruIAP.Instance.InitWithKeys(uid, googleKey, appleRootCerts, IsDebugMode); } /// diff --git a/Runtime/Code/SDK/GuruSDK.cs b/Runtime/Code/SDK/GuruSDK.cs index eaae86f..7e1f3e0 100644 --- a/Runtime/Code/SDK/GuruSDK.cs +++ b/Runtime/Code/SDK/GuruSDK.cs @@ -356,7 +356,7 @@ namespace Guru } - InitIAP(DeviceId, _initConfig.GoogleKeys, _initConfig.AppleRootCerts); // 初始化IAP + InitIAP(UID, _initConfig.GoogleKeys, _initConfig.AppleRootCerts); // 初始化IAP }, ex => { UnityEngine.Debug.LogError($"--- ERROR on useIAP: {ex.Message}");