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