diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_BuyShanHeSheJiTuGetRewardTimes.lua b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_BuyShanHeSheJiTuGetRewardTimes.lua index bc517fb0bd..965f60c5af 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_BuyShanHeSheJiTuGetRewardTimes.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_BuyShanHeSheJiTuGetRewardTimes.lua @@ -88,7 +88,7 @@ function this.Refresh() else this.costIcon.gameObject:SetActive(true) this.costIcon.sprite = this.spLoader:LoadSprite(GetResourcePath(itemConfig[storeData.Cost[1][1]].ResourceID)) - local needNum = storeData.Cost[2][PrivilegeManager.GetPrivilegeUsedTimes(buyPriId) + 1] or storeData.Cost[2][#storeData.Cost[2]] + local needNum = CalculateCostCount(PrivilegeManager.GetPrivilegeUsedTimes(buyPriId),storeData.Cost[2]) --storeData.Cost[2][PrivilegeManager.GetPrivilegeUsedTimes(buyPriId) + 1] or storeData.Cost[2][#storeData.Cost[2]] if BagManager.GetItemCountById(storeData.Cost[1][1]) >= needNum then this.costNum.text = string.format("×%s",needNum) else