From 4abdfba82a6c80ff44482879787217d13eac19a1 Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Wed, 23 Jun 2021 16:11:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B9=BE=E5=9D=A4=E5=AE=9D=E7=9B=92=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/DynamicActivity/QianKunBoxBuyTenPanel.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/DynamicActivity/QianKunBoxBuyTenPanel.lua b/Assets/ManagedResources/~Lua/Modules/DynamicActivity/QianKunBoxBuyTenPanel.lua index cd41c1976e..77883fed40 100644 --- a/Assets/ManagedResources/~Lua/Modules/DynamicActivity/QianKunBoxBuyTenPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/DynamicActivity/QianKunBoxBuyTenPanel.lua @@ -70,9 +70,11 @@ function QianKunBoxBuyTenPanel:BindEvent() return end local d=RecruitManager.GetExpendData(this.recruitType) + local tempItemId=d[1] + local tempItemNum=d[2] local maxtimesId=lotterySetting[this.recruitType].MaxTimes local freeTimesId=lotterySetting[this.recruitType].FreeTimes - if(BagManager.GetItemCountById(1003)>=10 or BagManager.GetItemCountById(16>=2000)) then + if BagManager.GetItemCountById(tempItemId)>=tempItemNum then local recruitTen = function() self:ClosePanel() RecruitManager.RecruitRequest(this.recruitType, function(msg) @@ -82,7 +84,7 @@ function QianKunBoxBuyTenPanel:BindEvent() end,freeTimesId) end local state = PlayerPrefs.GetInt(PlayerManager.uid.."GeneralPopup_RecruitConfirm"..recType[2]) - if state==0 and d[1] == 16 then + if state==0 and tempItemId == 16 then UIManager.OpenPanel(UIName.GeneralPopup,GENERAL_POPUP_TYPE.RecruitConfirm,this.recruitType,recruitTen) else recruitTen()