update: 添加支付数量日志
parent
852853629e
commit
7fe982f5bc
|
|
@ -144,12 +144,11 @@ namespace Guru
|
|||
|
||||
public void InitProperties()
|
||||
{
|
||||
_successLevel = new BindableProperty<int>(b_level, OnLevelChanged);
|
||||
_totalPlayed = new BindableProperty<int>(b_play, OnPlayedChanged);
|
||||
_purchasedCount = new BindableProperty<int>(buy_count, OnPurchasedNumChanged);
|
||||
_uid = new BindableProperty<string>(uid, OnUidChanged);
|
||||
|
||||
purchased = new List<PurchasedProduct>(20);
|
||||
if(_successLevel == null) _successLevel = new BindableProperty<int>(b_level, OnLevelChanged);
|
||||
if(_totalPlayed == null) _totalPlayed = new BindableProperty<int>(b_play, OnPlayedChanged);
|
||||
if(_purchasedCount == null) _purchasedCount = new BindableProperty<int>(buy_count, OnPurchasedNumChanged);
|
||||
if(_uid == null) _uid = new BindableProperty<string>(uid, OnUidChanged);
|
||||
if(purchased == null) purchased = new List<PurchasedProduct>(20);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -243,6 +243,9 @@ namespace Guru
|
|||
return;
|
||||
}
|
||||
|
||||
Debug.Log($"[SDK] --- PurchasedCount:{Model.PurchasedCount}");
|
||||
Debug.Log($"[SDK] --- IsIapUser:{Model.IsIapUser}");
|
||||
|
||||
SetUserIsIAP(Model.IsIapUser); // 预先设置用户的 IAP User 属性
|
||||
SetUserBLevel(Model.SuccessLevelId); // 预先设置用户的 BLevel 属性
|
||||
SetUserBPlay(Model.TotalPlayedCount); // 预先设置用户的 BPlay 属性
|
||||
|
|
|
|||
Loading…
Reference in New Issue