From b486af27688d4a1bacdf00e18aeffcab8df7fcb6 Mon Sep 17 00:00:00 2001 From: huyufei Date: Sun, 19 May 2024 18:03:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20iOS=20=E6=89=93?= =?UTF-8?q?=E5=8C=85=E6=8A=A5=E9=94=99=E7=9A=84=20BUG=20(IAPServices=20=5F?= =?UTF-8?q?uid=20->=20=5Fuuid)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: huyufei --- Runtime/GuruIAP/Runtime/Code/IAPServiceBase.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Runtime/GuruIAP/Runtime/Code/IAPServiceBase.cs b/Runtime/GuruIAP/Runtime/Code/IAPServiceBase.cs index 07961fc..eb31728 100644 --- a/Runtime/GuruIAP/Runtime/Code/IAPServiceBase.cs +++ b/Runtime/GuruIAP/Runtime/Code/IAPServiceBase.cs @@ -235,7 +235,7 @@ namespace Guru #if UNITY_IOS _appleExtensions = extensions.GetExtension(); - _appleExtensions.SetApplicationUsername(_userId); // SetUp UID + _appleExtensions.SetApplicationUsername(_uuid); // SetUp UID // On Apple platforms we need to handle deferred purchases caused by Apple's Ask to Buy feature. // On non-Apple platforms this will have no effect; OnDeferred will never be called. _appleExtensions.RegisterPurchaseDeferredListener(item => @@ -246,7 +246,6 @@ namespace Guru #elif UNITY_ANDROID _configBuilder.Configure().SetObfuscatedAccountId(_uuid); // SetUp UID _googlePlayStoreExtensions = extensions.GetExtension(); - // _googlePlayStoreExtensions.SetObfuscatedAccountId(IPMConfig.IPM_UID); //添加安装游戏后第一次初试化进行恢复购买的回调 只有安卓才有 _googlePlayStoreExtensions.RestoreTransactions(OnRestoreHandle); #endif @@ -538,11 +537,6 @@ namespace Guru Product product = _storeController.products.WithID(info.Setting.ProductId); if (product != null && product.availableToPurchase) { -// #if UNITY_ANDROID -// _configBuilder -// .Configure() -// .SetObfuscatedAccountId(IPMConfig.IPM_UID); -// #endif if (string.IsNullOrEmpty(category)) category = info.Category; _storeController.InitiatePurchase(product); _curProductInfo = info;