From 2845fc28a2bcfeb711a7b985a289a7478521fa1a Mon Sep 17 00:00:00 2001 From: huyfei Date: Tue, 30 Jan 2024 14:24:32 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=9B=B4=E6=96=B0=20IAP=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E7=9A=84=E5=AF=BC=E5=85=A5=E6=9C=BA?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/GuruManager/Manager/GuruSDKManager.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Editor/GuruManager/Manager/GuruSDKManager.cs b/Editor/GuruManager/Manager/GuruSDKManager.cs index feaa6b1..7e98bba 100644 --- a/Editor/GuruManager/Manager/GuruSDKManager.cs +++ b/Editor/GuruManager/Manager/GuruSDKManager.cs @@ -736,8 +736,14 @@ namespace Guru.Editor nn.FindProperty($"Products.Array.data[{i}].AppStoreProductId").stringValue = arr[2]; nn.FindProperty($"Products.Array.data[{i}].Price").doubleValue = double.Parse(arr[3]); nn.FindProperty($"Products.Array.data[{i}].Type").enumValueIndex = int.Parse(arr[4]); - nn.FindProperty($"Products.Array.data[{i}].IsFree").boolValue = false; nn.FindProperty($"Products.Array.data[{i}].Category").stringValue = "Store"; + nn.FindProperty($"Products.Array.data[{i}].IsFree").boolValue = false; + + //----- Extends Columes ------ + if (arr.Length > 5) + nn.FindProperty($"Products.Array.data[{i}].Category").stringValue = arr[5]; + if (arr.Length > 6) + nn.FindProperty($"Products.Array.data[{i}].IsFree").boolValue = arr[6].ToLower() == "1" || arr[6].ToLower() == "true"; } } }