From 0efe04d84cf85b12cf01c167fd83238c43621df8 Mon Sep 17 00:00:00 2001 From: "DESKTOP-7R8JEQQ\\k" <1076390229@qq.com> Date: Sun, 20 Jul 2025 06:48:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base_project/Game/GroupUpdataHelper.lua | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 lua_probject/base_project/Game/GroupUpdataHelper.lua 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