【ID1018914】

【心魔试炼】通过最高层后,点击快速挑战报服务器开小差错误提示
dev_chengFeng
jiaoyangna 2021-10-28 17:59:56 +08:00
parent e95f7f9e26
commit acf33d10a3
2 changed files with 31 additions and 53 deletions

View File

@ -96,41 +96,11 @@ function MonsterCampNewPanel:BindEvent()
end,2) end,2)
end) end)
Util.AddClick(this.moppingUpBtn, function () Util.AddClick(this.moppingUpBtn, function ()
-- if MonsterCampManager.monsterWave - 1 <= 0 then local waveConfig = ConfigManager.GetConfigData(ConfigName.FloodConfig,MonsterCampManager.monsterWave)
-- PopupTipPanel.ShowTip("无法扫荡,请先挑战心魔试炼!") if not waveConfig then
-- return PopupTipPanel.ShowTip("已通过最高层,无法快速挑战!")
-- end return
-- if freeTimes <= 0 and buyTimes <= 0 then end
-- PopupTipPanel.ShowTip("今日已无扫荡次数!")
-- return
-- end
-- local _storeDataId,_itemId,_costNum,moppingUpNum = MonsterCampManager.MonsterCampGetYJGMCost()
-- MsgPanel.ShowTwo(string.format("是否花费%s%s进行一键扫荡",_costNum,itemConfig[itemId].Name),function() end,function()
-- if BagManager.GetItemCountById(_itemId) < _costNum then
-- PopupTipPanel.ShowTip(string.format(Language[10298], itemConfig[itemId].Name))
-- else
-- if moppingUpNum > 0 then
-- ShopManager.RequestBuyShopItem(SHOP_TYPE.FUNCTION_SHOP,storeDataId,moppingUpNum,function()
-- PrivilegeManager.RefreshPrivilegeUsedTimes(PRIVILEGE_TYPE.MONSTERCAMP_BUY_BATTLENUM, moppingUpNum)
-- NetManager.SweepDemonRequest(MonsterCampManager.monsterWave - 1,true,function(msg)
-- UIManager.OpenPanel(UIName.RewardItemPopup,msg.Drop,1,function()
-- PrivilegeManager.RefreshPrivilegeUsedTimes(PRIVILEGE_TYPE.MONSTERCAMP_BATTLENUM, MonsterCampManager.GetCanBattleCount() )
-- this.UpdatePrivilage()
-- end)
-- end)
-- end)
-- else
-- NetManager.SweepDemonRequest(MonsterCampManager.monsterWave - 1,true,function(msg)
-- UIManager.OpenPanel(UIName.RewardItemPopup,msg.Drop,1,function()
-- PrivilegeManager.RefreshPrivilegeUsedTimes(PRIVILEGE_TYPE.MONSTERCAMP_BATTLENUM, MonsterCampManager.GetCanBattleCount() )
-- this.UpdatePrivilage()
-- end)
-- end)
-- end
-- end
-- end,"取消","确定")
if FormationManager.CheckFormationValid(FormationTypeDef.MONSTER_CAMP_ATTACK) then if FormationManager.CheckFormationValid(FormationTypeDef.MONSTER_CAMP_ATTACK) then
this.QuickStartMonsterFightRequest() this.QuickStartMonsterFightRequest()
else else

View File

@ -107,13 +107,22 @@ function this:BindEvent()
local currentTime = os.date("%Y%m%d", PlayerManager.serverTime) local currentTime = os.date("%Y%m%d", PlayerManager.serverTime)
local shopType = localSelf.ShopType local shopType = localSelf.ShopType
local isAutoRecover = ShopManager.IsAutoRecoverCount(shopType) local isAutoRecover = ShopManager.IsAutoRecoverCount(shopType)
local leftCount = this.GetShopLeftRefreshCount(shopType)
if leftCount == -2 then
PopupTipPanel.ShowTip(Language[11896])
elseif leftCount == 0 then
PopupTipPanel.ShowTip(Language[11897])
else
if shopType == SHOP_TYPE.SOUL_PRINT_SHOP then if shopType == SHOP_TYPE.SOUL_PRINT_SHOP then
local itemlist = ShopManager.CheckShopItemList(self.ShopData.storeItem) local itemlist = ShopManager.CheckShopItemList(self.ShopData.storeItem)
local isShow = false local isShow = false
for k,v in pairs(itemlist) do for k,v in pairs(itemlist) do
local goods = ShopManager.GetShopItemGoodsInfo(v.id) local goods = ShopManager.GetShopItemGoodsInfo(v.id)
local itemInfo = ShopManager.GetShopItemInfo(v.id)
local maxLimitCount = ShopManager.GetShopItemLimitBuyCount(v.id)
local curBuyCount = itemInfo.buyNum
local con = ConfigManager.GetConfigData(ConfigName.ItemConfig,goods[1][1]) local con = ConfigManager.GetConfigData(ConfigName.ItemConfig,goods[1][1])
if con.Quantity >= 6 then if con.Quantity >= 6 and curBuyCount < maxLimitCount then
isShow = true isShow = true
end end
end end
@ -128,8 +137,7 @@ function this:BindEvent()
else else
RefreshShop(isPopUp,currentTime,isAutoRecover,shopType) RefreshShop(isPopUp,currentTime,isAutoRecover,shopType)
end end
end
-- 重置商店刷新按钮点击状态 -- 重置商店刷新按钮点击状态
ShopManager.SetShopRefreshBtnClickStatus(localSelf.ShopType, true) ShopManager.SetShopRefreshBtnClickStatus(localSelf.ShopType, true)
end) end)