地图中停止探索报错修改

dev_chengFeng
jiaoyangna 2021-12-31 16:11:51 +08:00
parent 17c6d0cdc7
commit 9880fcf8e8
2 changed files with 1 additions and 6 deletions

View File

@ -46,7 +46,6 @@ function ExplorePanel:OnShow()
this.data = ExploreManager.GetFormationDataByMapId(this.mapData.mapId)
if not this.data or #this.data < 1 then
SwitchPanel.ClosePanel(UIName.ExplorePanel, function()end)
return
end
end

View File

@ -63,7 +63,7 @@ function ExploreRewardPopup:OnShow()
end
if not ishave then
PopupTipPanel.ShowTip("尚未获得探索奖励!")
self:ClosePanel()
this:ClosePanel()
return
end
for i = 1,math.max(#this.data,#this.itemList) do
@ -108,10 +108,6 @@ function this:Refresh(_item,_data)
if _data.state > 0 then
NetManager.ExplorerMapRewardRequest(0,_data.formationId,function(drop)
UIManager.OpenPanel(UIName.RewardItemPopup,drop,1,function()
_data.state = 0
_data.exploreTime = 0
_data.mapId = 0
self:Refresh(_item,_data)
end)
end)
end