fix:更换sdk,修复bug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user