fix:更换sdk,修复bug

This commit is contained in:
barry
2026-06-06 16:55:32 +08:00
parent bd28506b1f
commit 7003140acc
565 changed files with 44334 additions and 43789 deletions
@@ -248,10 +248,10 @@ namespace RedHotRoast
bool is_paid = list[index].is_paid;
item.btn_buy.index.selectedIndex = 0;
// item.off_text.text = list[index].Discount_rate + "%";
// item.discount.visible = !GameHelper.IsAdModelOfPay() && list[index].Discount_rate > 0;
//
// if (list[index].Discount_rate != 0) item.off_text.text = list[index].Discount_rate + "%";
item.off_text.text = list[index].Discount_rate + "%";
item.discount.visible = !GameHelper.IsAdModelOfPay() && list[index].Discount_rate > 0;
if (list[index].Discount_rate != 0) item.off_text.text = list[index].Discount_rate + "%";
if (time + list[index].receive_CD < GameHelper.GetNowTime())
{
@@ -263,7 +263,7 @@ namespace RedHotRoast
if (!is_paid)
{
item.btn_buy.btn_text.text = "Free";
// item.discount.visible = false;
item.discount.visible = false;
item.index.selectedIndex = 0;
}
else
@@ -384,9 +384,10 @@ namespace RedHotRoast
var test = new AdExchangeData()
{
ad_count = AdExchangeManager.Instance.GetCeilingNeedAds(skuType),
type = $"buy_gold{index}",
type = skuType,
shopName = $"buy_gold{index}"
};
Debug.Log($"amount============={test.ad_count}");
AdExchangeManager.Instance.Exchange(test);
}
else