parent
1862517c0f
commit
3033c42c03
|
|
@ -469,24 +469,18 @@ namespace Guru
|
|||
/// <param name="platfrom"></param>
|
||||
public static void FBPurchase(float revenue, string currency, string type, string platfrom)
|
||||
{
|
||||
FBService.LogPurchase(revenue, currency, new Dictionary<string, object>()
|
||||
var data = new Dictionary<string, object>()
|
||||
{
|
||||
{ AppEventParameterName.Currency, USD },
|
||||
{ AppEventParameterName.ContentType, type },
|
||||
{ ParameterAdPlatform, platfrom},
|
||||
});
|
||||
{ ParameterAdPlatform, platfrom },
|
||||
};
|
||||
FBService.LogPurchase(revenue, currency, data);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Facebook 支付上报
|
||||
/// </summary>
|
||||
/// <param name="value"></param>
|
||||
/// <param name="currency"></param>
|
||||
/// <param name="type"></param>
|
||||
/// <param name="platfrom"></param>
|
||||
public static void FBPurchase(double value, string currency, string type, string platfrom)
|
||||
=> FBPurchase(value, currency, type, platfrom);
|
||||
|
||||
public static void FBPurchase(double revenue, string currency, string type, string platfrom)
|
||||
=> FBPurchase((float)revenue, currency, type, platfrom);
|
||||
|
||||
/// <summary>
|
||||
/// Google ARO买量点
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ namespace Guru
|
|||
var request = new UnityWebRequest(RequestURL, "POST");
|
||||
//request.uploadHandler = new UploadHandlerRaw();
|
||||
request.downloadHandler = new DownloadHandlerBuffer();
|
||||
Debug.Log($"[SDK] --- RefreshFirebaseTokenRequest :: contentTYpe: {IPMConfig.Header_Value_ContentType} AppID: {IPMConfig.IPM_X_APP_ID} UID: {IPMConfig.IPM_UID} AccessToken: {IPMConfig.IPM_TOKEN}");
|
||||
request.SetRequestHeader(IPMConfig.Header_Param_ContentType, IPMConfig.Header_Value_ContentType);
|
||||
request.SetRequestHeader(IPMConfig.Header_Param_APPID, IPMConfig.IPM_X_APP_ID);
|
||||
request.SetRequestHeader(IPMConfig.Header_Param_UID, IPMConfig.IPM_UID);
|
||||
|
|
|
|||
|
|
@ -613,6 +613,7 @@ namespace Guru
|
|||
Analytics.LogCrashlytics(new Exception(msg));
|
||||
}
|
||||
|
||||
LogI($"{Tag} --- Call OnBuyEnd [{productName}] :: {OnBuyEnd}");
|
||||
OnBuyEnd?.Invoke(productName, success);
|
||||
OnPurchaseOver(success, productName); // 支付成功处理逻辑
|
||||
ClearCurPurchasingProduct(); // 清除购买缓存
|
||||
|
|
@ -881,7 +882,7 @@ namespace Guru
|
|||
/// <param name="value"></param>
|
||||
public static void SetIsIAPUser(bool value = true)
|
||||
{
|
||||
if (Instance != null && Instance._model != null)
|
||||
if (Instance != null && Instance._model != null && value)
|
||||
{
|
||||
Instance._model.SetIsIapUser(value); // 用户属性
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue