fix:1、去掉支付插件,2、更换多语言文件

This commit is contained in:
barry
2026-07-14 13:41:44 +08:00
parent 8435b6e676
commit 49d65c1fdc
25 changed files with 51506 additions and 41528 deletions
+45 -46
View File
@@ -13,7 +13,6 @@ using RedHotRoast;
// using SDK_IAP;
using SGModule.Net;
using UnityEngine;
using UnityEngine.Purchasing;
namespace RedHotRoast
{
@@ -244,55 +243,55 @@ namespace RedHotRoast
/// <param name="productId">商品ID</param>
/// <param name="productName">商品名称(用于日志)</param>
/// <param name="onResult">检查结果回调</param>
public void CheckEntitlement(string productId, string productName, System.Action<EntitlementStatus> onResult = null)
{
// IAPManager.CheckEntitlement(productId, status =>
// {
// Debug.Log($"[IAP IOS] {productId} 权益状态: {status}");
// onResult?.Invoke(status);
// });
}
// public void CheckEntitlement(string productId, string productName, System.Action<EntitlementStatus> onResult = null)
// {
// // IAPManager.CheckEntitlement(productId, status =>
// // {
// // Debug.Log($"[IAP IOS] {productId} 权益状态: {status}");
// // onResult?.Invoke(status);
// // });
// }
/// <summary>检查加一格礼包权益</summary>
public void CheckSpaceBonusEntitlement()
{
CheckEntitlement(PRODUCT_SPACE_BONUS, "加一格礼包", state =>
{
if (state == EntitlementStatus.FullyEntitled)
{
// 激活加一格权限
SaveData.GetSaveObject().have_slot = true;
}
});
}
// public void CheckSpaceBonusEntitlement()
// {
// CheckEntitlement(PRODUCT_SPACE_BONUS, "加一格礼包", state =>
// {
// if (state == EntitlementStatus.FullyEntitled)
// {
// // 激活加一格权限
// SaveData.GetSaveObject().have_slot = true;
// }
// });
// }
/// <summary>检查VIP订阅权益</summary>
public void CheckVipEntitlement()
{
CheckEntitlement(PRODUCT_VIP_YEAR, "VIP年卡", status =>
{
if (status == EntitlementStatus.FullyEntitled)
{
// 激活年VIP权限
}
});
CheckEntitlement(PRODUCT_VIP_MONTH, "VIP月卡", status =>
{
if (status == EntitlementStatus.FullyEntitled)
{
// 激活月VIP权限
}
});
CheckEntitlement(PRODUCT_VIP_WEEK, "VIP周卡", status =>
{
if (status == EntitlementStatus.FullyEntitled)
{
// 激活周VIP权限
}
});
}
// public void CheckVipEntitlement()
// {
// CheckEntitlement(PRODUCT_VIP_YEAR, "VIP年卡", status =>
// {
// if (status == EntitlementStatus.FullyEntitled)
// {
// // 激活年VIP权限
// }
// });
//
// CheckEntitlement(PRODUCT_VIP_MONTH, "VIP月卡", status =>
// {
// if (status == EntitlementStatus.FullyEntitled)
// {
// // 激活月VIP权限
// }
// });
//
// CheckEntitlement(PRODUCT_VIP_WEEK, "VIP周卡", status =>
// {
// if (status == EntitlementStatus.FullyEntitled)
// {
// // 激活周VIP权限
// }
// });
// }