a面提交

This commit is contained in:
2026-06-01 14:48:38 +08:00
parent 9b2b69dac2
commit a616b21475
5 changed files with 171 additions and 27 deletions
+6 -9
View File
@@ -99,22 +99,19 @@ public class AdRedeemManager
bool is_get = item.Key == PurchasingManager.GetPaySku(PayType.pack_reward) && SaveData.GetSaveObject().is_get_packreward;
bool is_get1 = item.Key == PurchasingManager.GetPaySku(PayType.remove_ad) && SaveData.GetSaveObject().is_get_removead;
if (is_get || is_get1)
if (item.Key == PurchasingManager.GetPaySku(PayType.pack_reward) || item.Key == PurchasingManager.GetPaySku(PayType.remove_ad)) return;
if (GameHelper.GetNowTime() < lastTimes && !checkIsCanReceive(item.Key))
{
item.Value.enabled = false;
}
else if (GameHelper.GetNowTime() < lastTimes && !checkIsCanReceive(item.Key))
{
item.Value.enabled = false;
item.Value.can_buy.selectedIndex = btn_watchAd.Can_buy_cd;
item.Value.btn_text.text = CommonHelper.TimeFormat(lastTimes - Convert.ToInt32(GameHelper.GetNowTime()), CountDownType.Hour);
item.Value.can_buy.selectedIndex = btn_watchAd.Can_buy_cd;
}
else
{
// stopAction();
item.Value.enabled = true;
item.Value.can_buy.selectedIndex = btn_watchAd.Can_buy_can;
checkBtnState(item.Value, item.Key);
item.Value.can_buy.selectedIndex = btn_watchAd.Can_buy_can;
}
}
@@ -370,11 +367,11 @@ public class AdRedeemManager
if (type == "success" && successTrackKey != null)
{
// TrackKit.SendEvent(Property.adEvent, successTrackKey, Int32.Parse(suffix));
// TrackKit.SendEvent(Property.adEvent, successTrackKey, Int32.Parse(suffix));
}
else if (type == "click" && clickTrackKey != null)
{
// TrackKit.SendEvent(Property.adEvent, clickTrackKey, Int32.Parse(suffix));
// TrackKit.SendEvent(Property.adEvent, clickTrackKey, Int32.Parse(suffix));
}
}