【抽卡优化】连续十连或单抽也有确认提示

dev_chengFeng
ZhangBiao 2020-12-28 15:46:22 +08:00
parent f7804d531a
commit becdc2dd88
4 changed files with 38 additions and 21 deletions

View File

@ -40,9 +40,9 @@ function this.SetBasicValues(giftGoodsList)
local rechargeConfigLocal = ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig, giftGoodsInfo.goodsId) local rechargeConfigLocal = ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig, giftGoodsInfo.goodsId)
LogGreen("------充值活动-----------礼包类型:".. rechargeConfigLocal.Type .." 礼包ID".. giftGoodsInfo.goodsId .." 已购:" -- LogGreen("------充值活动-----------礼包类型:".. rechargeConfigLocal.Type .." 礼包ID".. giftGoodsInfo.goodsId .." 已购:"
..giftGoodsInfo.buyTimes.." 开始:"..giftGoodsInfo.startTime.." 结束:" -- ..giftGoodsInfo.buyTimes.." 开始:"..giftGoodsInfo.startTime.." 结束:"
..giftGoodsInfo.endTime .. " 可购(没卵用)" .. giftGoodsInfo.dynamicBuyTimes) -- ..giftGoodsInfo.endTime .. " 可购(没卵用)" .. giftGoodsInfo.dynamicBuyTimes)
if giftGoodsInfo.endTime == 0 and giftGoodsInfo.startTime == 0 and (rechargeConfigLocal.ShowType == 25 or rechargeConfigLocal.ShowType == 26 or rechargeConfigLocal.ShowType == 8) then if giftGoodsInfo.endTime == 0 and giftGoodsInfo.startTime == 0 and (rechargeConfigLocal.ShowType == 25 or rechargeConfigLocal.ShowType == 26 or rechargeConfigLocal.ShowType == 8) then
else else
if giftGoodsInfoList[rechargeConfigLocal.Type] then if giftGoodsInfoList[rechargeConfigLocal.Type] then

View File

@ -85,7 +85,7 @@ function this:OnShow(_parent,...)
Util.AddOnceClick(this.btn,function() Util.AddOnceClick(this.btn,function()
this.btnClick=(this.btnClick and this.btnClick==1) and 0 or 1 this.btnClick=(this.btnClick and this.btnClick==1) and 0 or 1
LogPink(this.btnClick) LogPink(var..":"..this.btnClick)
PlayerPrefs.SetInt(var,this.btnClick) PlayerPrefs.SetInt(var,this.btnClick)
go:SetActive(PlayerPrefs.GetInt(var)==1) go:SetActive(PlayerPrefs.GetInt(var)==1)
end) end)

View File

@ -82,16 +82,24 @@ function SingleRecruitPanel:BindEvent()
return return
end end
end end
RecruitManager.RecruitRequest(type,function(msg) local recruitOne = function()
if d[1] == 16 and lotterySetting[type].MoneyTimes and lotterySetting[type].MoneyTimes > 0 then RecruitManager.RecruitRequest(type,function(msg)
PrivilegeManager.RefreshPrivilegeUsedTimes(lotterySetting[type].MoneyTimes,1)--记录妖晶限购抽卡次数 if d[1] == 16 and lotterySetting[type].MoneyTimes and lotterySetting[type].MoneyTimes > 0 then
end PrivilegeManager.RefreshPrivilegeUsedTimes(lotterySetting[type].MoneyTimes,1)--记录妖晶限购抽卡次数
PrivilegeManager.RefreshPrivilegeUsedTimes(maxTimesId,1)--记录抽卡次数 end
for i=1, #msg.drop.Hero do PrivilegeManager.RefreshPrivilegeUsedTimes(maxTimesId,1)--记录抽卡次数
heroData = msg.drop.Hero[i] for i=1, #msg.drop.Hero do
self:UpdataPanelData(heroData) heroData = msg.drop.Hero[i]
end self:UpdataPanelData(heroData)
end,maxTimesId) end
end,maxTimesId)
end
local state = PlayerPrefs.GetInt(PlayerManager.uid.."GeneralPopup_RecruitConfirm"..RecruitType.Ten)
if state==0 and d[1] == 16 then
UIManager.OpenPanel(UIName.GeneralPopup,GENERAL_POPUP_TYPE.RecruitConfirm,RecruitType.Single,recruitOne)
else
recruitOne()
end
end) end)
Util.AddClick(this.dragView.gameObject, function () Util.AddClick(this.dragView.gameObject, function ()
if testLiveGO then if testLiveGO then

View File

@ -52,13 +52,22 @@ function TenRecruitPanel:BindEvent()
return return
end end
end end
RecruitManager.RecruitRequest(type, function(msg) local recruitTen = function()
if d[1] == 16 and lotterySetting[type].MoneyTimes and lotterySetting[type].MoneyTimes > 0 then RecruitManager.RecruitRequest(type, function(msg)
PrivilegeManager.RefreshPrivilegeUsedTimes(lotterySetting[type].MoneyTimes,10)--记录妖晶限购抽卡次数 if d[1] == 16 and lotterySetting[type].MoneyTimes and lotterySetting[type].MoneyTimes > 0 then
end PrivilegeManager.RefreshPrivilegeUsedTimes(lotterySetting[type].MoneyTimes,10)--记录妖晶限购抽卡次数
PrivilegeManager.RefreshPrivilegeUsedTimes(maxTimesId,10)--记录抽卡次数 end
UIManager.OpenPanel(UIName.SingleRecruitPanel, msg.drop.Hero, type,2) PrivilegeManager.RefreshPrivilegeUsedTimes(maxTimesId,10)--记录抽卡次数
end,maxTimesId) UIManager.OpenPanel(UIName.SingleRecruitPanel, msg.drop.Hero, type,2)
end,maxTimesId)
end
local state = PlayerPrefs.GetInt(PlayerManager.uid.."GeneralPopup_RecruitConfirm"..RecruitType.Ten)
if state==0 and d[1] == 16 then
UIManager.OpenPanel(UIName.GeneralPopup,GENERAL_POPUP_TYPE.RecruitConfirm,RecruitType.Ten,recruitTen)
else
recruitTen()
end
end) end)
end end