diff --git a/Assets/ManagedResources/~Lua/Modules/JumpServer/JumpServerHightLadderPanel.lua b/Assets/ManagedResources/~Lua/Modules/JumpServer/JumpServerHightLadderPanel.lua index 13f8d62a6d..fd4b19232d 100644 --- a/Assets/ManagedResources/~Lua/Modules/JumpServer/JumpServerHightLadderPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/JumpServer/JumpServerHightLadderPanel.lua @@ -336,6 +336,7 @@ function this.BuyVipFun(type,warOrSd,fun) MsgPanel.ShowTwo(string.format( tipStr,finalNum,itemName), nil, function() --买东西 ShopManager.RequestBuyShopItem(SHOP_TYPE.FUNCTION_SHOP,JumpServerManager.shopGoodId,1,function() + PrivilegeManager.RefreshPrivilegeUsedTimes(PRIVILEGE_TYPE.JUMPSERVER_GIGHTLADDER_BUYNUM, 1)--更新特权 local tipStr2 = warOrSd == 1 and Language[12328] or "扫荡成功!" PopupTipPanel.ShowTip(tipStr2) if fun then diff --git a/Assets/ManagedResources/~Lua/Modules/JumpServer/JumpServerManager.lua b/Assets/ManagedResources/~Lua/Modules/JumpServer/JumpServerManager.lua index 63b0499414..4f81bef57c 100644 --- a/Assets/ManagedResources/~Lua/Modules/JumpServer/JumpServerManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/JumpServer/JumpServerManager.lua @@ -87,14 +87,16 @@ function this.GetCanBuyBattleCount() return PrivilegeManager.GetPrivilegeRemainValue(PRIVILEGE_TYPE.JUMPSERVER_GIGHTLADDER_BUYNUM) end --天梯开始战斗 +this.curBattleDrop = {} function this.StarFightHightLadder(personInfo,skipFight,callBack) NetManager.GetWorldArenaChallengeRequest(FormationTypeDef.FORMATION_NORMAL,personInfo,skipFight,function (msg) oldMyRank = myRank - if msg and msg.drop and msg.drop.itemlist and #msg.drop.itemlist > 0 then - LogPink(" #msg.drop.itemlist ".. #msg.drop.itemlist) - else - LogPink(" #msg.drop.itemlist nil ") - end + -- if msg and msg.drop and msg.drop.itemlist and #msg.drop.itemlist > 0 then + -- LogPink(" #msg.drop.itemlist ".. #msg.drop.itemlist) + -- else + -- LogPink(" #msg.drop.itemlist nil ") + -- end + this.curBattleDrop = msg.drop if skipFight == 0 then--挑战 if msg.err== -1 then this.BattleHightLadderData(msg) @@ -104,11 +106,11 @@ function this.StarFightHightLadder(personInfo,skipFight,callBack) this.BattleHightLadderData(msg) local fightData = BattleManager.GetBattleServerData(msg,1) UIManager.OpenPanel(UIName.BattlePanel, fightData, BATTLE_TYPE.JumpServerhightLadder, function() - UIManager.OpenPanel(UIName.RewardItemPopup, msg.drop, 1,function() + -- UIManager.OpenPanel(UIName.RewardItemPopup, msg.drop, 1,function() if callBack then callBack(msg) end - end) + -- end) end ) else diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/BattleWinPopup.lua b/Assets/ManagedResources/~Lua/Modules/Popup/BattleWinPopup.lua index 53ca119369..b630990c6f 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/BattleWinPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/BattleWinPopup.lua @@ -199,7 +199,7 @@ function BattleWinPopup:NextStep() -- 胜利显示本场比赛的表现最好的英雄 UIManager.OpenPanel(UIName.BattleBestPopup, bestData.roleId,bestData.skinId, bestData.damage, allDamage, function(_BattleBestPopup) -- 打开关卡奖励界面 - -- UIManager.OpenPanel(UIName.RewardItemPopup, m_battleResult.drop, 1,function() + UIManager.OpenPanel(UIName.RewardItemPopup, JumpServerManager.curBattleDrop, 1,function() if _BattleBestPopup then _BattleBestPopup:ClosePanel() end @@ -207,7 +207,7 @@ function BattleWinPopup:NextStep() m_battlePanel:ClosePanel() end self:ClosePanel() - -- end) + end, 0,true,true) local MyRank = JumpServerManager.GetHightLadderDataMyRank() local OldMyRank = JumpServerManager.GetHightLadderDataOldMyRank() if MyRank ~= OldMyRank then