BUY_PRODUCT,

BUY_PRODUCT_ALL,
BUY_PAID_COUNT_ACC,
This commit is contained in:
Ino 2025-04-28 07:51:18 +09:00
parent 64a5071861
commit 11ae7830d4
5 changed files with 7 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -166,7 +166,9 @@ public class InappInfo : MonoBehaviour, IDetailedStoreListener
{
if (_success)
{
ServerInfo.Ins.m_ServerData.Add_ShopBuyCount(m_Data.n_ShopItemID);
var sdata = ServerInfo.Ins.m_ServerData;
sdata.Add_ShopBuyCount(m_Data.n_ShopItemID);
sdata.Add_MissionCount(ePurpose.BUY_PAID_COUNT_ACC);
var inappid = m_PurchaseEventArgs.purchasedProduct.definition.id;
ServerInfo.Ins.Write_UnityInApp(inappid, () =>
{

View File

@ -1301,6 +1301,8 @@ public partial class ServerData
void Add_ShopRandomBagItem(int shopid, int bagid, Action afterbuy)
{
Add_ShopBuyCount(shopid);
Add_MissionCount(ePurpose.BUY_PRODUCT, shopid);
Add_MissionCount(ePurpose.BUY_PRODUCT_ALL);
var bag = table_randombag.Ins.Get_DataList(bagid);
var obtainlist = new List<ItemSimpleData>();
for (int j = 0; j < bag.Count; j++)