update: 替换支付接口的 UID -> UUID

deeplink
胡宇飞 2024-05-18 21:17:20 +08:00
parent 7fe982f5bc
commit 5494e6c3f9
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 userId, byte[] googleKey, byte[] appleRootCerts)
public static void InitIAP(string uuid, 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(userId, googleKey, appleRootCerts, IsDebugMode);
GuruIAP.Instance.InitWithKeys(uuid, googleKey, appleRootCerts, IsDebugMode);
}
/// <summary>

View File

@ -355,7 +355,7 @@ namespace Guru
}
InitIAP(UID, _initConfig.GoogleKeys, _initConfig.AppleRootCerts); // 初始化IAP
InitIAP(DeviceId, _initConfig.GoogleKeys, _initConfig.AppleRootCerts); // 初始化IAP
}, ex =>
{
UnityEngine.Debug.LogError($"--- ERROR on useIAP: {ex.Message}");