fix:1、修复bug。 2、1.0.8版本提审
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user