fix:1、修复bug。 2、1.0.8版本提审

This commit is contained in:
2026-05-15 11:09:47 +08:00
parent ee55c03120
commit 978797b678
121 changed files with 67129 additions and 66253 deletions
@@ -144,12 +144,10 @@ namespace BallKingdomCrush
{
string type = (string)str;
if (type.StartsWith("buy_gold"))
if (PurchasingManager._shopProductMap.TryGetValue(type, out var shopId))
{
int startIndex = "buy_gold".Length;
string suffix = type[startIndex..]; // 截取 "gold" 后的所有字符
int suffix_num = int.Parse(suffix);
int suffix_num = int.Parse(shopId);
Debug.Log($"购买金币成功 id===={suffix_num}");
SaveData.GetSaveObject()._goldtime[suffix_num] = (int)GameHelper.GetNowTime();
SaveData.SaveDataFunc();
GetAward(list[suffix_num].Actual_coins, suffix_num);
@@ -321,7 +319,7 @@ namespace BallKingdomCrush
{
ad_count = AdExchangeManager.Instance.GetCeilingNeedAds(_type),
type = _type,
shopName = $"buy_gold{index}"
shopName = _type
};
AdExchangeManager.Instance.Exchange(test);
}