update: 更新Google订单上报信息

feature/Inventory 1.0.4
胡宇飞 2024-01-18 18:19:53 +08:00
parent 664f574e53
commit a161249e63
2 changed files with 19 additions and 1 deletions

View File

@ -53,6 +53,24 @@ namespace Guru
Analytics.Tch02IAPRev(usdPrice);
AdjustService.TrackIAPPurchase(usdPrice, productId);
Analytics.IAPPurchase(usdPrice, productId);
return;
}
if (!string.IsNullOrEmpty(response))
{
if (response.Contains("500") || response.Contains("Internal Server Error"))
{
Debug.LogError(
$"[IAP] GoogleOrderRequest failed: contact with guru backend server team. Make sure they'v connect order report to this project!");
}
else
{
Debug.LogError($"[IAP] GoogleOrderRequest failed: {response}");
}
}
else
{
Debug.LogError($"[IAP] GoogleOrderRequest failed: response is null or empty");
}
}
}

View File

@ -616,7 +616,7 @@ namespace Guru
if (productReceipt is GooglePlayReceipt google)
{
Debug.Log($"{Tag} --- Report Android IAP Order -> orderType:{orderType} productID:{productID} blevel:{blevel}");
new GoogleOrderRequest(orderType, productID, subscriptionID, google.purchaseToken, blevel).Send();
new GoogleOrderRequest(orderType, productID, subscriptionID, google.purchaseToken, blevel).SetTimeOut(5).Send();
}
}
#elif UNITY_IOS