主城优化修改
parent
ef7130e056
commit
36f4efedc8
File diff suppressed because it is too large
Load Diff
|
@ -395,4 +395,35 @@ function this.CheckXiangYaoDuoBaoRedPoint()
|
|||
return false
|
||||
end
|
||||
|
||||
function this.GetActivityTableDataByPageInde(pageIndex)
|
||||
local activityDic = {}
|
||||
local functionDic = {}
|
||||
local activityGroupsData = {}
|
||||
local activityDatas = {}
|
||||
local configs = ConfigManager.GetAllConfigsDataByKey(ConfigName.ActivityGroups,"PageType",pageIndex)
|
||||
for i = 1 , #configs do
|
||||
if configs[i].ActiveType > 0 then
|
||||
if not activityDic[configs[i].ActiveType] then
|
||||
activityDic[configs[i].ActiveType] = configs[i]
|
||||
table.insert(activityGroupsData,configs[i])
|
||||
end
|
||||
elseif configs[i].FunType > 0 then
|
||||
if not activityDic[configs[i].FunType] then
|
||||
functionDic[configs[i].FunType] = configs[i]
|
||||
table.insert(activityGroupsData,configs[i])
|
||||
end
|
||||
elseif configs[i].ActiveType == 0 and configs[i].FunType == 0 then
|
||||
table.insert(activityGroupsData,configs[i])
|
||||
end
|
||||
end
|
||||
table.sort(activityGroupsData,function(a,b)
|
||||
if a.Sort == b.Sort then
|
||||
return a.ActId > b.ActId
|
||||
else
|
||||
return a.Sort < b.Sort
|
||||
end
|
||||
end)
|
||||
return activityGroupsData
|
||||
end
|
||||
|
||||
return this
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue