推送礼包修改

jiaoyangna 2020-10-22 02:57:40 +08:00
parent 3b19043f34
commit 598eac1d3a
1 changed files with 18 additions and 11 deletions

View File

@ -61,15 +61,18 @@ function this:BindEvent()
curIndex = curIndex - 1
if curGiftList[curType][curIndex] then
else
curType = curType == 1 and (LengthOfTable(activityType)) or (curType - 1)
for i = curType,1,-1 do
if curGiftList[i] and #curGiftList[i] > 0 then
for i = curType - 1,0,-1 do
if not activityType[i] then
curType = LengthOfTable(activityType)
i = LengthOfTable(activityType)
else
curType = i
curIndex = #curGiftList[i]
break
end
end
if curGiftList[curType] and #curGiftList[curType] > 0 then
curIndex = #curGiftList[curType]
break
end
end
end
OperatingManager.upGradePackagePanelType = curType
OperatingManager.upGradePackagePanelIndex = curIndex
@ -80,12 +83,16 @@ function this:BindEvent()
curIndex = curIndex + 1
if curGiftList[curType][curIndex] then
else
curType = curType == (LengthOfTable(activityType)) and 1 or (curType + 1)
for i = curType,(LengthOfTable(activityType)) do
if curGiftList[i] and #curGiftList[i] > 0 then
for i = curType + 1,LengthOfTable(activityType),1 do
if not activityType[i] then
curType = 1
i = 1
else
curType = i
end
if curGiftList[curType] and #curGiftList[curType] > 0 then
curIndex = 1
break
break
end
end
end