diff --git a/Assets/ManagedResources/~Lua/Modules/Carbon/XuanYuanMirrorPanelList.lua b/Assets/ManagedResources/~Lua/Modules/Carbon/XuanYuanMirrorPanelList.lua index a49d64262e..d8bb7913f9 100644 --- a/Assets/ManagedResources/~Lua/Modules/Carbon/XuanYuanMirrorPanelList.lua +++ b/Assets/ManagedResources/~Lua/Modules/Carbon/XuanYuanMirrorPanelList.lua @@ -242,7 +242,8 @@ function this:SetLevelData(go, data) PopupTipPanel.ShowTip(Language[10297]) return end - + LogError("costnum==="..costNum) + LogError("XuanYuanMirrorManager.freeTime="..XuanYuanMirrorManager.freeTime) if BagManager.GetItemCountById(itemId) < costNum and XuanYuanMirrorManager.freeTime <= 0 then PopupTipPanel.ShowTip(string.format(Language[10298], GetLanguageStrById(itemConfig[itemId].Name))) return @@ -340,8 +341,16 @@ function this:OnShow(...) local usedTimes=PrivilegeManager.GetPrivilegeUsedTimes(buyTimeId) local privilegeTime=PrivilegeManager.GetPrivilegeNumber(buyTimeId) --商店表数据 + LogError("usedtimes=="..usedTimes.." privegetime=="..privilegeTime) local buyTimes = usedTimes>= privilegeTime and privilegeTime or usedTimes+1 - costNum = storeData.Cost[2][buyTimes] + LogError("bugytimes=="..buyTimeId.." buytimes=="..buyTimes) + if buyTimes==0 then + costNum=0 + else + costNum = storeData.Cost[2][buyTimes] + end + + LogError("-----------------costnum=="..costNum) this:SwitchView(args[1]) end