A面修改
This commit is contained in:
@@ -100,18 +100,22 @@ public class AdRedeemManager
|
||||
bool is_get1 = item.Key == PurchasingManager.GetPaySku(PayType.remove_ad) && SaveData.GetSaveObject().is_get_removead;
|
||||
|
||||
if (item.Key == PurchasingManager.GetPaySku(PayType.pack_reward) || item.Key == PurchasingManager.GetPaySku(PayType.remove_ad)) return;
|
||||
if (GameHelper.GetNowTime() < lastTimes && !checkIsCanReceive(item.Key))
|
||||
if (is_get || is_get1)
|
||||
{
|
||||
item.Value.enabled = false;
|
||||
}
|
||||
else if (GameHelper.GetNowTime() < lastTimes && !checkIsCanReceive(item.Key))
|
||||
{
|
||||
item.Value.enabled = false;
|
||||
item.Value.btn_text.text = CommonHelper.TimeFormat(lastTimes - Convert.ToInt32(GameHelper.GetNowTime()), CountDownType.Hour);
|
||||
item.Value.can_buy.selectedIndex = btn_watchAd.Can_buy_cd;
|
||||
item.Value.btn_text.text = CommonHelper.TimeFormat(lastTimes - Convert.ToInt32(GameHelper.GetNowTime()), CountDownType.Hour);
|
||||
}
|
||||
else
|
||||
{
|
||||
// stopAction();
|
||||
item.Value.enabled = true;
|
||||
checkBtnState(item.Value, item.Key);
|
||||
item.Value.can_buy.selectedIndex = btn_watchAd.Can_buy_can;
|
||||
checkBtnState(item.Value, item.Key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -367,11 +371,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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user