推送礼包修改
parent
598eac1d3a
commit
89c7961154
|
|
@ -61,12 +61,11 @@ function this:BindEvent()
|
||||||
curIndex = curIndex - 1
|
curIndex = curIndex - 1
|
||||||
if curGiftList[curType][curIndex] then
|
if curGiftList[curType][curIndex] then
|
||||||
else
|
else
|
||||||
for i = curType - 1,0,-1 do
|
while(curType <= 0) do
|
||||||
if not activityType[i] then
|
if not activityType[curType] then
|
||||||
curType = LengthOfTable(activityType)
|
curType = LengthOfTable(activityType)
|
||||||
i = LengthOfTable(activityType)
|
|
||||||
else
|
else
|
||||||
curType = i
|
curType = curType - 1
|
||||||
end
|
end
|
||||||
if curGiftList[curType] and #curGiftList[curType] > 0 then
|
if curGiftList[curType] and #curGiftList[curType] > 0 then
|
||||||
curIndex = #curGiftList[curType]
|
curIndex = #curGiftList[curType]
|
||||||
|
|
@ -83,12 +82,11 @@ function this:BindEvent()
|
||||||
curIndex = curIndex + 1
|
curIndex = curIndex + 1
|
||||||
if curGiftList[curType][curIndex] then
|
if curGiftList[curType][curIndex] then
|
||||||
else
|
else
|
||||||
for i = curType + 1,LengthOfTable(activityType),1 do
|
while(curType <= LengthOfTable(activityType) + 1) do
|
||||||
if not activityType[i] then
|
if not activityType[curType] then
|
||||||
curType = 1
|
curType = 1
|
||||||
i = 1
|
|
||||||
else
|
else
|
||||||
curType = i
|
curType = curType + 1
|
||||||
end
|
end
|
||||||
if curGiftList[curType] and #curGiftList[curType] > 0 then
|
if curGiftList[curType] and #curGiftList[curType] > 0 then
|
||||||
curIndex = 1
|
curIndex = 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue