From 94f8e44ea9b76fb699950ee3acc50e459513786e Mon Sep 17 00:00:00 2001 From: huyufei Date: Wed, 22 May 2024 19:04:34 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=9B=B4=E6=96=B0=20IAP=20=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=20UUID=20=E7=9A=84=E6=8E=A5=E5=8F=A3?= 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, 6 insertions(+), 2 deletions(-) diff --git a/Runtime/GuruIAP/Runtime/Code/IAPServiceBase.cs b/Runtime/GuruIAP/Runtime/Code/IAPServiceBase.cs index 132e39c..aa3a62c 100644 --- a/Runtime/GuruIAP/Runtime/Code/IAPServiceBase.cs +++ b/Runtime/GuruIAP/Runtime/Code/IAPServiceBase.cs @@ -231,9 +231,13 @@ namespace Guru { _storeController = controller; _storeExtensionProvider = extensions; - var uuid = IPMConfig.IPM_DEVICE_ID; + var uuid = IPMConfig.UUID; if(string.IsNullOrEmpty(_uid)) _uid = IPMConfig.IPM_UID; - + + if (!string.IsNullOrEmpty(_uid) && string.IsNullOrEmpty(uuid)) + { + uuid = IDHelper.GenUUID(_uid); + } LogI($"--- IAP Initialized Success. With UID: {_uid} and UUID: {uuid}"); #if UNITY_IOS