[bug]==========福利红包红点修改

dev_chengFeng
wangzhenxing 2021-06-30 18:00:52 +08:00
parent aeed1703bd
commit 4ad64a41f2
7 changed files with 28 additions and 18 deletions

View File

@ -263,13 +263,11 @@ function this.ChatDataAdapter(channel, data)
if PlayerManager.uid~=tonumber(msgs[2]) then
LogError("处理聊天数据")
GuildRedPacketManager.isCheck = true
MyGuildManager.PackageNum=MyGuildManager.PackageNum+1
--MyGuildManager.PackageNum=MyGuildManager.PackageNum+1
--CheckRedPointStatus(RedPointType.Guild_RedPacket)
CheckRedPointStatus(RedPointType.Guid_GetPackage)
--CheckRedPointStatus(RedPointType.Guid_GetPackage)
MyGuildManager.ReuqsetRedPackage()
end
LogError("聊天推过来的红包num"..MyGuildManager.PackageNum)
end
end
end

View File

@ -260,9 +260,7 @@ function this.JoinGuildSuccess()
--
PopupTipPanel.ShowTip(Language[10377])
NetManager.RequestRedPacketData()
MyGuildManager.ReuqsetRedPackage(function()
CheckRedPointStatus(RedPointType.Guid_GetPackage)
end)
MyGuildManager.ReuqsetRedPackage()
end
-- 设置数据类型

View File

@ -252,7 +252,9 @@ end
function GuildMainCityPanel:OnShow()
this.UpView:OnOpen({ showType = UpViewOpenType.ShowRight, panelType = PanelType.Guild })
this.BtView:OnOpen(self, { sortOrder = self.sortingOrder, panelType = PanelTypeView.GongHui })
CheckRedPointStatus(RedPointType.Guild_RedPacket)
--CheckRedPointStatus(RedPointType.Guild_RedPacket)
--CheckRedPointStatus(RedPointType.Guid_SendPackage)
--CheckRedPointStatus(RedPointType.Guid_GetPackage)
CheckRedPointStatus(RedPointType.Guild_Fete)
CheckRedPointStatus(RedPointType.Guild_AidBox)
CheckRedPointStatus(RedPointType.Guild_AidGuild)
@ -264,12 +266,14 @@ function GuildMainCityPanel:OnShow()
Log("尚未加入公会")
return
end
-- 刷新一遍公会数据,这里主要是为了刷新玩家位置信息,避免返回地图界面出现的问题
NetManager.RequestMyGuildInfo()
-- 刷新公会战阶段信息
this.RefreshStageShow()
-- 开始定时刷新聊天数据
this.ChatTipView:StartCheck()
MyGuildManager.ReuqsetRedPackage()
-- 刷新十绝阵是否开启
this.RefreshDeathPos()
-- 开始吧
@ -508,7 +512,10 @@ end
-- 刷新红包红点
function this.CloseRedPointClick()
GuildRedPacketManager.isCheck=false
CheckRedPointStatus(RedPointType.Guild_RedPacket)
--CheckRedPointStatus(RedPointType.Guild_RedPacket)
--CheckRedPointStatus(RedPointType.Guid_SendPackage)
--CheckRedPointStatus(RedPointType.Guid_GetPackage)
MyGuildManager.ReuqsetRedPackage()
end
--刷新十绝阵是否开启

View File

@ -197,9 +197,10 @@ function this.RefreshGuildAllRedState()
CheckRedPointStatus(RedPointType.Guild_Fete)
CheckRedPointStatus(RedPointType.Guild_House)
CheckRedPointStatus(RedPointType.Guild_House_Apply)
CheckRedPointStatus(RedPointType.Guid_GetPackage)
CheckRedPointStatus(RedPointType.Guid_SendPackage)
CheckRedPointStatus(RedPointType.Guild_RedPacket)
--CheckRedPointStatus(RedPointType.Guid_GetPackage)
--CheckRedPointStatus(RedPointType.Guid_SendPackage)
MyGuildManager.ReuqsetRedPackage()
--CheckRedPointStatus(RedPointType.Guild_RedPacket)
CheckRedPointStatus(RedPointType.Guild_Shop)
CheckRedPointStatus(RedPointType.Guild_Skill)
CheckRedPointStatus(RedPointType.Guild_Transcript)

View File

@ -164,14 +164,20 @@ end
-- 关闭View
function this.CloseView(lastIndex)
CheckRedPointStatus(RedPointType.Guild_RedPacket)
--CheckRedPointStatus(RedPointType.Guild_RedPacket)
--CheckRedPointStatus(RedPointType.Guid_SendPackage)
--CheckRedPointStatus(RedPointType.Guid_GetPackage)
MyGuildManager.ReuqsetRedPackage()
this.contents[lastIndex].view:OnClose()
end
-- 刷新红包查看后红点点击操作
function this.CloseRedPointClick()
GuildRedPacketManager.isCheck=false
CheckRedPointStatus(RedPointType.Guild_RedPacket)
--CheckRedPointStatus(RedPointType.Guild_RedPacket)
--CheckRedPointStatus(RedPointType.Guid_SendPackage)
--CheckRedPointStatus(RedPointType.Guid_GetPackage)
MyGuildManager.ReuqsetRedPackage()
end
return RedPacketPanel

View File

@ -75,7 +75,6 @@ end
--初始化面板
function this.InitView(redId,id)
LogError("ffffff")
local config=ConfigManager.GetConfigData(ConfigName.GuildRedPackConfig,id)
local index=id
if index>3 then

View File

@ -145,8 +145,9 @@ function this.WelfareRedPacketPush(buffer)
LogError("推送过来红包数据")
if msg.redpacket then
MyGuildManager.SetMyGuidRedPackage(msg.redpacket)
CheckRedPointStatus(RedPointType.Guid_SendPackage)
CheckRedPointStatus(RedPointType.Guid_GetPackage)
--CheckRedPointStatus(RedPointType.Guid_SendPackage)
--CheckRedPointStatus(RedPointType.Guid_GetPackage)
MyGuildManager.ReuqsetRedPackage()
end
-- BagManager.BagIndicationRefresh(msg)
end