From 50268807c36f33d91675c33cc77d3afd3ea48477 Mon Sep 17 00:00:00 2001 From: zhangqiang <657634622@qq.com> Date: Fri, 27 Aug 2021 15:12:22 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8D=81=E7=BB=9D=E9=98=B5=E3=80=91?= =?UTF-8?q?=E5=B7=A6=E4=B8=8A=E8=A7=92=E6=95=B0=E6=8D=AE=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E4=B8=8D=E5=8F=8A=E6=97=B6=EF=BC=8C=E5=BE=97=E9=87=8D=E8=BF=9B?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E6=89=8D=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Guild/DeathPos/DeathPosInfoPanel.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosInfoPanel.lua b/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosInfoPanel.lua index a52adccc28..42aba31f4a 100644 --- a/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosInfoPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosInfoPanel.lua @@ -103,10 +103,12 @@ end function DeathPosInfoPanel:AddListener() Game.GlobalEvent:AddEvent(GameEvent.Guild.RefreshDeathPosStatus, this.RefreshPanel) + Game.GlobalEvent:AddEvent(GameEvent.Guild.RefreshFirstChangeData, this.RefreshGuildNameAndServerName) end function DeathPosInfoPanel:RemoveListener() Game.GlobalEvent:RemoveEvent(GameEvent.Guild.RefreshDeathPosStatus, this.RefreshPanel) + Game.GlobalEvent:RemoveEvent(GameEvent.Guild.RefreshFirstChangeData, this.RefreshGuildNameAndServerName) end function DeathPosInfoPanel:OnOpen(...) local args={...} @@ -180,6 +182,7 @@ function this.RefreshPanel() end --刷新第一名公会 服务器 名字信息 +--为什么 再onshow 调一次 事件监听又调用一次呢 有可能刷新界面的时候 推送还没有过来 function this.RefreshGuildNameAndServerName() local data=DeathPosManager.GetGuildInfoData() for key, value in pairs(data) do