parent
27666918f7
commit
841e1e5bf5
|
@ -61,7 +61,7 @@ end
|
|||
|
||||
function this.IsExist(id)
|
||||
if this.skinDatas[id] then
|
||||
return true
|
||||
return true,this.skinDatas[id].overTime
|
||||
else
|
||||
return false
|
||||
end
|
||||
|
|
|
@ -110,8 +110,13 @@ function RewardItemSingleShowPopup:BindEvent()
|
|||
Util.AddClick(this.btnJump, function()
|
||||
if itemConfigData.ItemType == ItemType.Skin then
|
||||
local skinConfig = ConfigManager.GetConfigData(ConfigName.HeroSkin,itemSid)
|
||||
if HeroSkinManager.IsExist(skinConfig.Type) then
|
||||
PopupTipPanel.ShowTip("已解锁该皮肤,请在皮肤有效期之后再解锁")
|
||||
local have,overtime = HeroSkinManager.IsExist(skinConfig.Type)
|
||||
if have then
|
||||
if overtime < 0 then
|
||||
PopupTipPanel.ShowTip("已经拥有该皮肤")
|
||||
else
|
||||
PopupTipPanel.ShowTip("已解锁该皮肤,请在皮肤有效期之后再解锁")
|
||||
end
|
||||
else
|
||||
local curResolveAllItemList = {}
|
||||
table.insert(curResolveAllItemList,{itemId = itemSid,itemNum = 1})
|
||||
|
|
Loading…
Reference in New Issue