diff --git a/Assets/ManagedResources/~Lua/Modules/Guild/MyGuildManager.lua b/Assets/ManagedResources/~Lua/Modules/Guild/MyGuildManager.lua index d1ad7b4c18..6216f7708c 100644 --- a/Assets/ManagedResources/~Lua/Modules/Guild/MyGuildManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Guild/MyGuildManager.lua @@ -177,7 +177,6 @@ function MyGuildManager.ReuqsetRedPackage(func) NetManager.GetAllRedPacketResponse(function(msg) local num=0 local SpecialConfig=ConfigManager.GetConfigData(ConfigName.SpecialConfig,115) - LogError("--------------------") for i = 1, #msg.info do local config=ConfigManager.GetConfigData(ConfigName.GuildRedPackConfig,msg.info[i].redType) if config and msg.info[i].isGet==0 and (config.Num-msg.info[i].getCount)>0 then @@ -186,12 +185,10 @@ function MyGuildManager.ReuqsetRedPackage(func) end end end - LogError("*************************") this.PackageNum=num CheckRedPointStatus(RedPointType.Guid_GetPackage) CheckRedPointStatus(RedPointType.Guid_SendPackage) --CheckRedPointStatus(RedPointType.Guild_RedPacket) - LogError("///////////////////") if func then func(msg) end diff --git a/Assets/ManagedResources/~Lua/Modules/Guild/RedPacketView/RedPacketPanel.lua b/Assets/ManagedResources/~Lua/Modules/Guild/RedPacketView/RedPacketPanel.lua index f084ca8122..e147913492 100644 --- a/Assets/ManagedResources/~Lua/Modules/Guild/RedPacketView/RedPacketPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Guild/RedPacketView/RedPacketPanel.lua @@ -118,6 +118,10 @@ function RedPacketPanel:OnClose() this.contents[i].view:OnClose() end ClearRedPointObject(RedPointType.Guild_RedPacket,this.redPoint) + if redPointList[2] and redPointList[3] then + ClearRedPointObject(RedPointType.Guid_SendPackage, redPointList[2]) + ClearRedPointObject(RedPointType.Guid_GetPackage, redPointList[3]) + end end --界面销毁时调用(用于子类重写) @@ -126,6 +130,7 @@ function RedPacketPanel:OnDestroy() this.contents[i].view:OnDestroy() this.spLoader:Destroy() end + redPointList=nil end