From a25e17fa7f62675fc7f6e4f2bb257d7ecf027547 Mon Sep 17 00:00:00 2001 From: yuanshuai <243578945@qq.com> Date: Tue, 27 Dec 2022 18:24:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A9=E8=BE=95=E5=AE=9D=E9=95=9C=E6=8C=91?= =?UTF-8?q?=E6=88=98=E6=AC=A1=E6=95=B0bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Carbon/XuanYuanMirrorPanelList.lua | 5 +++-- .../~Lua/Modules/DynamicActivity/DynamicActivityManager.lua | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Carbon/XuanYuanMirrorPanelList.lua b/Assets/ManagedResources/~Lua/Modules/Carbon/XuanYuanMirrorPanelList.lua index fd770252ca..a49d64262e 100644 --- a/Assets/ManagedResources/~Lua/Modules/Carbon/XuanYuanMirrorPanelList.lua +++ b/Assets/ManagedResources/~Lua/Modules/Carbon/XuanYuanMirrorPanelList.lua @@ -337,9 +337,10 @@ function this:OnShow(...) this:RefreshTimes() local buyTimeId = XuanYuanMirrorManager.buyTimeId storeData = ConfigManager.GetConfigDataByDoubleKey(ConfigName.StoreConfig, "StoreId", 7, "Limit", buyTimeId) + local usedTimes=PrivilegeManager.GetPrivilegeUsedTimes(buyTimeId) + local privilegeTime=PrivilegeManager.GetPrivilegeNumber(buyTimeId) --商店表数据 - local buyTimes = (PrivilegeManager.GetPrivilegeUsedTimes(buyTimeId) + 1) > PrivilegeManager.GetPrivilegeNumber(buyTimeId) - and PrivilegeManager.GetPrivilegeNumber(buyTimeId) or (PrivilegeManager.GetPrivilegeUsedTimes(buyTimeId) + 1) + local buyTimes = usedTimes>= privilegeTime and privilegeTime or usedTimes+1 costNum = storeData.Cost[2][buyTimes] this:SwitchView(args[1]) end diff --git a/Assets/ManagedResources/~Lua/Modules/DynamicActivity/DynamicActivityManager.lua b/Assets/ManagedResources/~Lua/Modules/DynamicActivity/DynamicActivityManager.lua index 12d9ee73f3..abcdaba5dc 100644 --- a/Assets/ManagedResources/~Lua/Modules/DynamicActivity/DynamicActivityManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/DynamicActivity/DynamicActivityManager.lua @@ -9,7 +9,7 @@ local GlobalActivity = ConfigManager.GetConfig(ConfigName.GlobalActivity) local heroConfig = ConfigManager.GetConfig(ConfigName.HeroConfig) local artResConfig = ConfigManager.GetConfig(ConfigName.ArtResourcesConfig) local prestigeConfig=ConfigManager.GetConfig(ConfigName.PrestigeConfig) -this.curLevel = 0--社稷大典的等级 +-- this.curLevel = 0--社稷大典的等级 this.curActivityType = 0 this.OpenUIList = {} this.selectIndex = {dataType = 0,goodsId = {}}