[bug]==========福利红包红点修改
parent
aeed1703bd
commit
4ad64a41f2
|
@ -263,13 +263,11 @@ function this.ChatDataAdapter(channel, data)
|
||||||
if PlayerManager.uid~=tonumber(msgs[2]) then
|
if PlayerManager.uid~=tonumber(msgs[2]) then
|
||||||
LogError("处理聊天数据")
|
LogError("处理聊天数据")
|
||||||
GuildRedPacketManager.isCheck = true
|
GuildRedPacketManager.isCheck = true
|
||||||
MyGuildManager.PackageNum=MyGuildManager.PackageNum+1
|
--MyGuildManager.PackageNum=MyGuildManager.PackageNum+1
|
||||||
--CheckRedPointStatus(RedPointType.Guild_RedPacket)
|
--CheckRedPointStatus(RedPointType.Guild_RedPacket)
|
||||||
CheckRedPointStatus(RedPointType.Guid_GetPackage)
|
--CheckRedPointStatus(RedPointType.Guid_GetPackage)
|
||||||
|
MyGuildManager.ReuqsetRedPackage()
|
||||||
end
|
end
|
||||||
|
|
||||||
LogError("聊天推过来的红包num:"..MyGuildManager.PackageNum)
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -260,9 +260,7 @@ function this.JoinGuildSuccess()
|
||||||
--
|
--
|
||||||
PopupTipPanel.ShowTip(Language[10377])
|
PopupTipPanel.ShowTip(Language[10377])
|
||||||
NetManager.RequestRedPacketData()
|
NetManager.RequestRedPacketData()
|
||||||
MyGuildManager.ReuqsetRedPackage(function()
|
MyGuildManager.ReuqsetRedPackage()
|
||||||
CheckRedPointStatus(RedPointType.Guid_GetPackage)
|
|
||||||
end)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 设置数据类型
|
-- 设置数据类型
|
||||||
|
|
|
@ -252,7 +252,9 @@ end
|
||||||
function GuildMainCityPanel:OnShow()
|
function GuildMainCityPanel:OnShow()
|
||||||
this.UpView:OnOpen({ showType = UpViewOpenType.ShowRight, panelType = PanelType.Guild })
|
this.UpView:OnOpen({ showType = UpViewOpenType.ShowRight, panelType = PanelType.Guild })
|
||||||
this.BtView:OnOpen(self, { sortOrder = self.sortingOrder, panelType = PanelTypeView.GongHui })
|
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_Fete)
|
||||||
CheckRedPointStatus(RedPointType.Guild_AidBox)
|
CheckRedPointStatus(RedPointType.Guild_AidBox)
|
||||||
CheckRedPointStatus(RedPointType.Guild_AidGuild)
|
CheckRedPointStatus(RedPointType.Guild_AidGuild)
|
||||||
|
@ -264,12 +266,14 @@ function GuildMainCityPanel:OnShow()
|
||||||
Log("尚未加入公会")
|
Log("尚未加入公会")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 刷新一遍公会数据,这里主要是为了刷新玩家位置信息,避免返回地图界面出现的问题
|
-- 刷新一遍公会数据,这里主要是为了刷新玩家位置信息,避免返回地图界面出现的问题
|
||||||
NetManager.RequestMyGuildInfo()
|
NetManager.RequestMyGuildInfo()
|
||||||
-- 刷新公会战阶段信息
|
-- 刷新公会战阶段信息
|
||||||
this.RefreshStageShow()
|
this.RefreshStageShow()
|
||||||
-- 开始定时刷新聊天数据
|
-- 开始定时刷新聊天数据
|
||||||
this.ChatTipView:StartCheck()
|
this.ChatTipView:StartCheck()
|
||||||
|
MyGuildManager.ReuqsetRedPackage()
|
||||||
-- 刷新十绝阵是否开启
|
-- 刷新十绝阵是否开启
|
||||||
this.RefreshDeathPos()
|
this.RefreshDeathPos()
|
||||||
-- 开始吧
|
-- 开始吧
|
||||||
|
@ -508,7 +512,10 @@ end
|
||||||
-- 刷新红包红点
|
-- 刷新红包红点
|
||||||
function this.CloseRedPointClick()
|
function this.CloseRedPointClick()
|
||||||
GuildRedPacketManager.isCheck=false
|
GuildRedPacketManager.isCheck=false
|
||||||
CheckRedPointStatus(RedPointType.Guild_RedPacket)
|
--CheckRedPointStatus(RedPointType.Guild_RedPacket)
|
||||||
|
--CheckRedPointStatus(RedPointType.Guid_SendPackage)
|
||||||
|
--CheckRedPointStatus(RedPointType.Guid_GetPackage)
|
||||||
|
MyGuildManager.ReuqsetRedPackage()
|
||||||
end
|
end
|
||||||
|
|
||||||
--刷新十绝阵是否开启
|
--刷新十绝阵是否开启
|
||||||
|
|
|
@ -197,9 +197,10 @@ function this.RefreshGuildAllRedState()
|
||||||
CheckRedPointStatus(RedPointType.Guild_Fete)
|
CheckRedPointStatus(RedPointType.Guild_Fete)
|
||||||
CheckRedPointStatus(RedPointType.Guild_House)
|
CheckRedPointStatus(RedPointType.Guild_House)
|
||||||
CheckRedPointStatus(RedPointType.Guild_House_Apply)
|
CheckRedPointStatus(RedPointType.Guild_House_Apply)
|
||||||
CheckRedPointStatus(RedPointType.Guid_GetPackage)
|
--CheckRedPointStatus(RedPointType.Guid_GetPackage)
|
||||||
CheckRedPointStatus(RedPointType.Guid_SendPackage)
|
--CheckRedPointStatus(RedPointType.Guid_SendPackage)
|
||||||
CheckRedPointStatus(RedPointType.Guild_RedPacket)
|
MyGuildManager.ReuqsetRedPackage()
|
||||||
|
--CheckRedPointStatus(RedPointType.Guild_RedPacket)
|
||||||
CheckRedPointStatus(RedPointType.Guild_Shop)
|
CheckRedPointStatus(RedPointType.Guild_Shop)
|
||||||
CheckRedPointStatus(RedPointType.Guild_Skill)
|
CheckRedPointStatus(RedPointType.Guild_Skill)
|
||||||
CheckRedPointStatus(RedPointType.Guild_Transcript)
|
CheckRedPointStatus(RedPointType.Guild_Transcript)
|
||||||
|
|
|
@ -164,14 +164,20 @@ end
|
||||||
|
|
||||||
-- 关闭View
|
-- 关闭View
|
||||||
function this.CloseView(lastIndex)
|
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()
|
this.contents[lastIndex].view:OnClose()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 刷新红包查看后红点点击操作
|
-- 刷新红包查看后红点点击操作
|
||||||
function this.CloseRedPointClick()
|
function this.CloseRedPointClick()
|
||||||
GuildRedPacketManager.isCheck=false
|
GuildRedPacketManager.isCheck=false
|
||||||
CheckRedPointStatus(RedPointType.Guild_RedPacket)
|
--CheckRedPointStatus(RedPointType.Guild_RedPacket)
|
||||||
|
--CheckRedPointStatus(RedPointType.Guid_SendPackage)
|
||||||
|
--CheckRedPointStatus(RedPointType.Guid_GetPackage)
|
||||||
|
MyGuildManager.ReuqsetRedPackage()
|
||||||
end
|
end
|
||||||
|
|
||||||
return RedPacketPanel
|
return RedPacketPanel
|
|
@ -75,7 +75,6 @@ end
|
||||||
|
|
||||||
--初始化面板
|
--初始化面板
|
||||||
function this.InitView(redId,id)
|
function this.InitView(redId,id)
|
||||||
LogError("ffffff")
|
|
||||||
local config=ConfigManager.GetConfigData(ConfigName.GuildRedPackConfig,id)
|
local config=ConfigManager.GetConfigData(ConfigName.GuildRedPackConfig,id)
|
||||||
local index=id
|
local index=id
|
||||||
if index>3 then
|
if index>3 then
|
||||||
|
|
|
@ -145,8 +145,9 @@ function this.WelfareRedPacketPush(buffer)
|
||||||
LogError("推送过来红包数据")
|
LogError("推送过来红包数据")
|
||||||
if msg.redpacket then
|
if msg.redpacket then
|
||||||
MyGuildManager.SetMyGuidRedPackage(msg.redpacket)
|
MyGuildManager.SetMyGuidRedPackage(msg.redpacket)
|
||||||
CheckRedPointStatus(RedPointType.Guid_SendPackage)
|
--CheckRedPointStatus(RedPointType.Guid_SendPackage)
|
||||||
CheckRedPointStatus(RedPointType.Guid_GetPackage)
|
--CheckRedPointStatus(RedPointType.Guid_GetPackage)
|
||||||
|
MyGuildManager.ReuqsetRedPackage()
|
||||||
end
|
end
|
||||||
-- BagManager.BagIndicationRefresh(msg)
|
-- BagManager.BagIndicationRefresh(msg)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue