28 lines
632 B
Lua
28 lines
632 B
Lua
|
|
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
|
||
|
|
|
||
|
|
--UpdateBeat:Add(GroupUpdataHelper.Updata, GroupUpdataHelper)
|
||
|
|
|
||
|
|
return GroupUpdataHelper
|