公会副本刷新问题

dev_chengFeng
zhangqiang 2020-08-26 17:45:18 +08:00
parent 1b8f1631b7
commit efaa3e51cc
2 changed files with 5 additions and 3 deletions

View File

@ -118,12 +118,14 @@ function FirstRechargePanel:OnOpen(context,_fun)
self.effect:SetActive(false) self.effect:SetActive(false)
self.ani.enabled = false self.ani.enabled = false
self.closeBtn:GetComponent("Button").enabled = false self.closeBtn:GetComponent("Button").enabled = false
self.tabs[1]:SetActive(false)
Timer.New(function () Timer.New(function ()
self.frame:SetActive(true) self.frame:SetActive(true)
self.effect:SetActive(true) self.effect:SetActive(true)
self.ani.enabled = true self.ani.enabled = true
end, 1.5):Start() end, 1.5):Start()
Timer.New(function () Timer.New(function ()
self.tabs[1]:SetActive(true)
self.closeBtn:GetComponent("Button").enabled = true self.closeBtn:GetComponent("Button").enabled = true
end, 2.5):Start() end, 2.5):Start()
end end

View File

@ -4438,14 +4438,14 @@ function this.GuildChallengeRequest(bossId,type,func)--0为挑战 1为扫荡
data.bossId = bossId data.bossId = bossId
data.type = type data.type = type
local msg = data:SerializeToString() local msg = data:SerializeToString()
-- if not GuildTranscriptManager.GetCurBattleIsSkillBoss() or (GuildTranscriptManager.GetCurBattleIsSkillBoss() and curPassBossId[bossId]) then--因为此时的indcaton RESPONSE 回来的还早 所以加特殊判断操作
PrivilegeManager.RefreshPrivilegeUsedTimes(PRIVILEGE_TYPE.GUILDTRANSCRIPT_BATTLENUM, 1)--更新特权
-- end
Network:SendMessageWithCallBack(MessageTypeProto_pb.GUILD_CHALLENGE_REQUEST, MessageTypeProto_pb.GUILD_CHALLENGE_RESPONSE, msg, function(buffer) Network:SendMessageWithCallBack(MessageTypeProto_pb.GUILD_CHALLENGE_REQUEST, MessageTypeProto_pb.GUILD_CHALLENGE_RESPONSE, msg, function(buffer)
local data = buffer:DataByte() local data = buffer:DataByte()
local msg = Family_pb.GuildChallengeResponse() local msg = Family_pb.GuildChallengeResponse()
msg:ParseFromString(data) msg:ParseFromString(data)
local curPassBossId = GuildTranscriptManager.GetRefreshedBoss() local curPassBossId = GuildTranscriptManager.GetRefreshedBoss()
-- if not GuildTranscriptManager.GetCurBattleIsSkillBoss() or (GuildTranscriptManager.GetCurBattleIsSkillBoss() and curPassBossId[bossId]) then--因为此时的indcaton RESPONSE 回来的还早 所以加特殊判断操作
PrivilegeManager.RefreshPrivilegeUsedTimes(PRIVILEGE_TYPE.GUILDTRANSCRIPT_BATTLENUM, 1)--更新特权
-- end
if func then if func then
func(msg) func(msg)
end end