fix: 修复 Google API 初始化传uid值
parent
fe36a57a81
commit
c6d6a1f5d8
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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}");
|
||||
|
|
|
|||
Loading…
Reference in New Issue