乾坤宝盒 提交
parent
0423ac27de
commit
35523560c0
|
@ -71,7 +71,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)
|
||||
|
@ -81,7 +83,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()
|
||||
|
|
Loading…
Reference in New Issue