fix: 修复 iOS 打包报错的 BUG (IAPServices _uid -> _uuid)
Signed-off-by: huyufei <yufei.hu@castbox.fm>deeplink
parent
28c1dd47a6
commit
b486af2768
|
|
@ -235,7 +235,7 @@ namespace Guru
|
||||||
|
|
||||||
#if UNITY_IOS
|
#if UNITY_IOS
|
||||||
_appleExtensions = extensions.GetExtension<IAppleExtensions>();
|
_appleExtensions = extensions.GetExtension<IAppleExtensions>();
|
||||||
_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 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.
|
// On non-Apple platforms this will have no effect; OnDeferred will never be called.
|
||||||
_appleExtensions.RegisterPurchaseDeferredListener(item =>
|
_appleExtensions.RegisterPurchaseDeferredListener(item =>
|
||||||
|
|
@ -246,7 +246,6 @@ namespace Guru
|
||||||
#elif UNITY_ANDROID
|
#elif UNITY_ANDROID
|
||||||
_configBuilder.Configure<IGooglePlayConfiguration>().SetObfuscatedAccountId(_uuid); // SetUp UID
|
_configBuilder.Configure<IGooglePlayConfiguration>().SetObfuscatedAccountId(_uuid); // SetUp UID
|
||||||
_googlePlayStoreExtensions = extensions.GetExtension<IGooglePlayStoreExtensions>();
|
_googlePlayStoreExtensions = extensions.GetExtension<IGooglePlayStoreExtensions>();
|
||||||
// _googlePlayStoreExtensions.SetObfuscatedAccountId(IPMConfig.IPM_UID);
|
|
||||||
//添加安装游戏后第一次初试化进行恢复购买的回调 只有安卓才有
|
//添加安装游戏后第一次初试化进行恢复购买的回调 只有安卓才有
|
||||||
_googlePlayStoreExtensions.RestoreTransactions(OnRestoreHandle);
|
_googlePlayStoreExtensions.RestoreTransactions(OnRestoreHandle);
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -538,11 +537,6 @@ namespace Guru
|
||||||
Product product = _storeController.products.WithID(info.Setting.ProductId);
|
Product product = _storeController.products.WithID(info.Setting.ProductId);
|
||||||
if (product != null && product.availableToPurchase)
|
if (product != null && product.availableToPurchase)
|
||||||
{
|
{
|
||||||
// #if UNITY_ANDROID
|
|
||||||
// _configBuilder
|
|
||||||
// .Configure<IGooglePlayConfiguration>()
|
|
||||||
// .SetObfuscatedAccountId(IPMConfig.IPM_UID);
|
|
||||||
// #endif
|
|
||||||
if (string.IsNullOrEmpty(category)) category = info.Category;
|
if (string.IsNullOrEmpty(category)) category = info.Category;
|
||||||
_storeController.InitiatePurchase(product);
|
_storeController.InitiatePurchase(product);
|
||||||
_curProductInfo = info;
|
_curProductInfo = info;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue