推送礼包修改
parent
3b19043f34
commit
598eac1d3a
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue