【灵兽宝阁】确认框错误修改

dev_chengFeng
ZhangBiao 2021-12-01 16:55:05 +08:00
parent 63bf32f335
commit c637166494
1 changed files with 1 additions and 2 deletions

View File

@ -246,7 +246,6 @@ function LingShouBaoGe:refreshBtnShow()
end end
function LingShouBaoGe:Recruit(id,RecruitMaxtimesId,itemId,itemNum,state,freeTimesId,recruitType) function LingShouBaoGe:Recruit(id,RecruitMaxtimesId,itemId,itemNum,state,freeTimesId,recruitType)
local generalType = id%2 == 0 and RecruitType.BaoGeSingle or RecruitType.BaoGeTen
local num = id%2 == 0 and 1 or 10 local num = id%2 == 0 and 1 or 10
--是否超过每日最大上限 --是否超过每日最大上限
if PrivilegeManager.GetPrivilegeRemainValue(RecruitMaxtimesId) < num then if PrivilegeManager.GetPrivilegeRemainValue(RecruitMaxtimesId) < num then
@ -260,7 +259,7 @@ function LingShouBaoGe:Recruit(id,RecruitMaxtimesId,itemId,itemNum,state,freeTim
end end
end end
if itemId == 16 and state == 0 then if itemId == 16 and state == 0 then
UIManager.OpenPanel(UIName.GeneralPopup,GENERAL_POPUP_TYPE.RecruitConfirm,self.tenRecruit.Id, UIManager.OpenPanel(UIName.GeneralPopup,GENERAL_POPUP_TYPE.RecruitConfirm,id,
function() function()
RecruitManager.RecruitRequest(id,function(msg) RecruitManager.RecruitRequest(id,function(msg)
PrivilegeManager.RefreshPrivilegeUsedTimes(RecruitMaxtimesId,num) PrivilegeManager.RefreshPrivilegeUsedTimes(RecruitMaxtimesId,num)