推送礼包修改

jiaoyangna 2020-10-22 03:24:22 +08:00
parent 598eac1d3a
commit 89c7961154
1 changed files with 6 additions and 8 deletions

View File

@ -61,12 +61,11 @@ function this:BindEvent()
curIndex = curIndex - 1
if curGiftList[curType][curIndex] then
else
for i = curType - 1,0,-1 do
if not activityType[i] then
while(curType <= 0) do
if not activityType[curType] then
curType = LengthOfTable(activityType)
i = LengthOfTable(activityType)
else
curType = i
curType = curType - 1
end
if curGiftList[curType] and #curGiftList[curType] > 0 then
curIndex = #curGiftList[curType]
@ -83,12 +82,11 @@ function this:BindEvent()
curIndex = curIndex + 1
if curGiftList[curType][curIndex] then
else
for i = curType + 1,LengthOfTable(activityType),1 do
if not activityType[i] then
while(curType <= LengthOfTable(activityType) + 1) do
if not activityType[curType] then
curType = 1
i = 1
else
curType = i
curType = curType + 1
end
if curGiftList[curType] and #curGiftList[curType] > 0 then
curIndex = 1