2025-07-20 06:48:10 +08:00
|
|
|
local GroupUpdataHelper = {}
|
|
|
|
|
local RequestNumberTime = 5
|
|
|
|
|
local lastTime = 0
|
|
|
|
|
|
|
|
|
|
function GroupUpdataHelper:Updata()
|
|
|
|
|
|
|
|
|
|
local fgCtr = ControllerManager.GetController(NewGroupController)
|
|
|
|
|
if fgCtr == nil then
|
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
local group = DataManager.CurrenGroup
|
|
|
|
|
if group == nil then
|
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
local newTime = os.time()
|
|
|
|
|
if newTime - lastTime > RequestNumberTime then
|
|
|
|
|
fgCtr:FG_GroupMembers12(group.id, 0, group.total_member_num, 2, 2, function()
|
|
|
|
|
end)
|
|
|
|
|
lastTime = newTime
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
2025-07-24 17:04:53 +08:00
|
|
|
--UpdateBeat:Add(GroupUpdataHelper.Updata, GroupUpdataHelper)
|
2025-07-20 06:48:10 +08:00
|
|
|
|
|
|
|
|
return GroupUpdataHelper
|