update: 替换支付接口的 UID -> UUID
							parent
							
								
									7fe982f5bc
								
							
						
					
					
						commit
						5494e6c3f9
					
				|  | @ -23,7 +23,7 @@ namespace Guru | ||||||
|         /// <summary> |         /// <summary> | ||||||
|         /// 初始化IAP 功能 |         /// 初始化IAP 功能 | ||||||
|         /// </summary> |         /// </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.OnInitResult += OnIAPInitResult; | ||||||
|             GuruIAP.Instance.OnRestored += OnRestored; |             GuruIAP.Instance.OnRestored += OnRestored; | ||||||
|  | @ -34,7 +34,7 @@ namespace Guru | ||||||
|              |              | ||||||
|             Callbacks.IAP._onIAPInitStart?.Invoke(); // 初始化之前进行调用 |             Callbacks.IAP._onIAPInitStart?.Invoke(); // 初始化之前进行调用 | ||||||
|              |              | ||||||
|             GuruIAP.Instance.InitWithKeys(userId, googleKey, appleRootCerts, IsDebugMode); |             GuruIAP.Instance.InitWithKeys(uuid, googleKey, appleRootCerts, IsDebugMode); | ||||||
|         } |         } | ||||||
|          |          | ||||||
|         /// <summary> |         /// <summary> | ||||||
|  |  | ||||||
|  | @ -355,7 +355,7 @@ namespace Guru | ||||||
|                     } |                     } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|                     InitIAP(UID, _initConfig.GoogleKeys, _initConfig.AppleRootCerts); // 初始化IAP |                     InitIAP(DeviceId, _initConfig.GoogleKeys, _initConfig.AppleRootCerts); // 初始化IAP | ||||||
|                 }, ex => |                 }, ex => | ||||||
|                 { |                 { | ||||||
|                     UnityEngine.Debug.LogError($"--- ERROR on useIAP: {ex.Message}"); |                     UnityEngine.Debug.LogError($"--- ERROR on useIAP: {ex.Message}"); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue