地图中停止探索报错修改
parent
17c6d0cdc7
commit
9880fcf8e8
|
@ -46,7 +46,6 @@ function ExplorePanel:OnShow()
|
||||||
this.data = ExploreManager.GetFormationDataByMapId(this.mapData.mapId)
|
this.data = ExploreManager.GetFormationDataByMapId(this.mapData.mapId)
|
||||||
if not this.data or #this.data < 1 then
|
if not this.data or #this.data < 1 then
|
||||||
SwitchPanel.ClosePanel(UIName.ExplorePanel, function()end)
|
SwitchPanel.ClosePanel(UIName.ExplorePanel, function()end)
|
||||||
return
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ function ExploreRewardPopup:OnShow()
|
||||||
end
|
end
|
||||||
if not ishave then
|
if not ishave then
|
||||||
PopupTipPanel.ShowTip("尚未获得探索奖励!")
|
PopupTipPanel.ShowTip("尚未获得探索奖励!")
|
||||||
self:ClosePanel()
|
this:ClosePanel()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
for i = 1,math.max(#this.data,#this.itemList) do
|
for i = 1,math.max(#this.data,#this.itemList) do
|
||||||
|
@ -108,10 +108,6 @@ function this:Refresh(_item,_data)
|
||||||
if _data.state > 0 then
|
if _data.state > 0 then
|
||||||
NetManager.ExplorerMapRewardRequest(0,_data.formationId,function(drop)
|
NetManager.ExplorerMapRewardRequest(0,_data.formationId,function(drop)
|
||||||
UIManager.OpenPanel(UIName.RewardItemPopup,drop,1,function()
|
UIManager.OpenPanel(UIName.RewardItemPopup,drop,1,function()
|
||||||
_data.state = 0
|
|
||||||
_data.exploreTime = 0
|
|
||||||
_data.mapId = 0
|
|
||||||
self:Refresh(_item,_data)
|
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue