diff --git a/lua_probject/base_project/Game/GroupUpdataHelper.lua b/lua_probject/base_project/Game/GroupUpdataHelper.lua new file mode 100644 index 00000000..bc6608fc --- /dev/null +++ b/lua_probject/base_project/Game/GroupUpdataHelper.lua @@ -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