Merge branch 'TCX_LongZhu' of http://192.168.1.21:3000/root/miduo_client into TCX_LongZhu

TCX_LongZhu
PC-202302260912\Administrator 2025-08-25 12:56:39 +08:00
commit 6f53ca89ea
1 changed files with 12 additions and 2 deletions

View File

@ -165,19 +165,29 @@ end
function this:SetCurTypeAndIndex()
curType = OperatingManager.upGradePackagePanelType and OperatingManager.upGradePackagePanelType or 1
curIndex = OperatingManager.upGradePackagePanelIndex and OperatingManager.upGradePackagePanelIndex or 0
if curGiftList[curType] and #curGiftList[curType] > 0 and curGiftList[curType][curIndex] then
elseif curGiftList[curType] and #curGiftList[curType] > 0 and (not curGiftList[curType][curIndex]) then
curIndex = #curGiftList[curType]
curIndex = math.floor(#curGiftList[curType]/2+1)
if curIndex > #curGiftList[curType] then
curIndex = #curGiftList[curType]
end
LogError("推送礼包类型:"..tostring(curType).." 推送礼包index"..tostring(curIndex))
return curGiftList[curType][curIndex]
else
for k,v in pairs(curGiftList) do
if v and #v > 0 then
curType = k
curIndex = #curGiftList[curType]
curIndex = math.floor(#curGiftList[curType]/2+1)
if curIndex > #curGiftList[curType] then
curIndex = #curGiftList[curType]
end
LogError("推送礼包类型:"..tostring(curType).." 推送礼包index"..tostring(curIndex))
return curGiftList[curType][curIndex]
end
end
end
LogError("推送礼包类型:"..tostring(curType).." 推送礼包index"..tostring(curIndex))
return curGiftList[curType][curIndex]
end