【ID1012358】

【tips】拥有永久皮肤后再使用皮肤提示信息异常需要优化
dev_chengFeng
jiaoyangna 2021-01-21 13:44:19 +08:00
parent 27666918f7
commit 841e1e5bf5
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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})