fix: 修复 Google API 初始化传uid值

deeplink
胡宇飞 2024-05-21 16:54:25 +08:00
parent fe36a57a81
commit c6d6a1f5d8
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ namespace Guru
/// <summary>
/// 初始化IAP 功能
/// </summary>
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);
}
/// <summary>

View File

@ -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}");