【特权商城】无法购买最后i一个名望礼包,修改
parent
7d3e8fd73d
commit
1597c0b657
|
@ -138,9 +138,9 @@ function this.InitActivityServerData(msg, isUpdate)
|
|||
if GlobalActivity[v.activityId] then
|
||||
this.CheckMoneyProgress(v)
|
||||
this.mission[v.activityId] = v
|
||||
LogYellow("刷新活动数据activityId:" .. v.activityId .. " value:" .. v.value)
|
||||
-- LogYellow("刷新活动数据activityId:" .. v.activityId .. " value:" .. v.value)
|
||||
for n, m in ipairs(v.mission) do
|
||||
LogGreen(" 刷新活动数据missionId:" .. m.missionId .. " state:" .. m.state .. " progress:" .. m.progress)
|
||||
-- LogGreen(" 刷新活动数据missionId:" .. m.missionId .. " state:" .. m.state .. " progress:" .. m.progress)
|
||||
if (v.activityId == ActivityTypeDef.OnlineGift) then
|
||||
this.onlineOpen = true
|
||||
this.onlineGetRewardState[m.missionId] = m.state
|
||||
|
|
|
@ -260,8 +260,8 @@ function EveryDayGiftNew:RefreshReward(Data)
|
|||
if Data.data.limitNum - Data.data.boughtNum > 0 then
|
||||
-- LogYellow(tostring(rechargeNum).." "..tostring(Data.data.shopItemData.BuyRule[2]))
|
||||
if rechargeNum >= Data.data.shopItemData.BuyRule[2] then
|
||||
-- LogPink(tostring(BagManager.GetItemCountById(Data.data.costId)).." "..tostring(Data.data.shopItemData.BuyRule[2]))
|
||||
if BagManager.GetItemCountById(Data.data.costId) >= Data.data.shopItemData.BuyRule[2] then
|
||||
-- LogPink(tostring(BagManager.GetItemCountById(Data.data.costId)).." "..tostring(Data.data.price))
|
||||
if BagManager.GetItemCountById(Data.data.costId) >= Data.data.price then
|
||||
-- LogBlue(tostring(Data.data.shopItemData.buyType).." "..tostring(Data.data.shopData.id))
|
||||
ShopManager.RequestBuyShopItem(Data.buyType, Data.data.shopData.id, 1, function()
|
||||
self:SetGrowGift()
|
||||
|
|
|
@ -177,7 +177,7 @@ function RechargeViewNew:RefreshReward(Data)
|
|||
-- LogYellow(tostring(rechargeNum).." "..tostring(Data.data.shopItemData.BuyRule[2]))
|
||||
if rechargeNum >= Data.data.shopItemData.BuyRule[2] then
|
||||
-- LogPink(tostring(BagManager.GetItemCountById(Data.data.costId)).." "..tostring(Data.data.shopItemData.BuyRule[2]))
|
||||
if BagManager.GetItemCountById(Data.data.costId) >= Data.data.shopItemData.BuyRule[2] then
|
||||
if BagManager.GetItemCountById(Data.data.costId) >= Data.data.price then
|
||||
-- LogBlue(tostring(Data.data.shopItemData.buyType).." "..tostring(Data.data.shopData.id))
|
||||
ShopManager.RequestBuyShopItem(Data.buyType, Data.data.shopData.id, 1, function()
|
||||
self:SetGrowGift()
|
||||
|
|
Loading…
Reference in New Issue