乾坤宝盒 提交

dev_chengFeng
jiaoyangna 2021-06-23 16:13:26 +08:00
parent 4abdfba82a
commit 622ea5c6a2
1 changed files with 4 additions and 2 deletions

View File

@ -69,7 +69,9 @@ function QianKunBoxBuyOnePanel:BindEvent()
local d=RecruitManager.GetExpendData(this.recruitType)
local maxtimesId=lotterySetting[this.recruitType].MaxTimes
local freeTimesId=lotterySetting[this.recruitType].FreeTimes
if(BagManager.GetItemCountById(1002)>=1 or BagManager.GetItemCountById(16)>=200) then
local tempItemId=d[1]
local tempItemNum=d[2]
if BagManager.GetItemCountById(tempItemId)>=tempItemNum then
local recruitOne = function()
self:ClosePanel()
RecruitManager.RecruitRequest(this.recruitType, function(msg)
@ -79,7 +81,7 @@ function QianKunBoxBuyOnePanel: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,recruitOne)
else
recruitOne()