提交文件
parent
2e256e43b8
commit
0efe04d84c
|
|
@ -0,0 +1,27 @@
|
|||
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
|
||||
Loading…
Reference in New Issue