【角色信息】所有跨服查看信息的不再可以添加好友和黑名单,修复跨服信息显示错误

dev_chengFeng
gaoxin 2022-03-04 18:13:16 +08:00
parent b10ebcd3ba
commit 51b829874d
1 changed files with 11 additions and 3 deletions

View File

@ -209,6 +209,10 @@ function PlayerInfoPopup:BindEvent()
this:ClosePanel() this:ClosePanel()
end) end)
Util.AddClick(this.addFriendBtn, function() Util.AddClick(this.addFriendBtn, function()
if this.serverName and this.serverName ~= "" then
PopupTipPanel.ShowTip("无法跨服添加好友")
return
end
if not ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.GOODFRIEND) then if not ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.GOODFRIEND) then
PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(FUNCTION_OPEN_TYPE.GOODFRIEND)) PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(FUNCTION_OPEN_TYPE.GOODFRIEND))
return return
@ -316,8 +320,8 @@ local titleLiveStr
local titleLive local titleLive
function this.RefreshPlayerInfo(data) function this.RefreshPlayerInfo(data)
local curname = "" local curname = ""
if this.serverName then if data.serverName then
curname = this.serverName .. " " ..data.name curname = data.serverName .. " " ..data.name
else else
curname = data.name curname = data.name
end end
@ -419,7 +423,7 @@ function this.FormationAdapter(teamInfo)
Util.AddOnceClick(this.Demons[hero.position].frameBtn, function() Util.AddOnceClick(this.Demons[hero.position].frameBtn, function()
NetManager.ViewHeroInfoRequest(this._PlayerId,hero.heroid,netserverName,this._Config.formationType,function(msg) NetManager.ViewHeroInfoRequest(this._PlayerId,hero.heroid,netserverName,this._Config.formationType,function(msg)
if not hero.heroid then if not hero.heroid then
return return
end end
heroData= GoodFriendManager.GetHeroDatas(msg.hero,msg.force,msg.SpecialEffects,msg.guildSkill) heroData= GoodFriendManager.GetHeroDatas(msg.hero,msg.force,msg.SpecialEffects,msg.guildSkill)
GoodFriendManager.InitEquipData(msg.equip,heroData)--HeroManager.GetSingleHeroData(heroData.dynamicId) GoodFriendManager.InitEquipData(msg.equip,heroData)--HeroManager.GetSingleHeroData(heroData.dynamicId)
@ -719,6 +723,10 @@ function this.Report()
end end
-- 拉黑 -- 拉黑
function this.AddToBlackList() function this.AddToBlackList()
if this.serverName and this.serverName ~= "" then
PopupTipPanel.ShowTip("无法跨服添加黑名单")
return
end
if not ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.GOODFRIEND) then if not ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.GOODFRIEND) then
PopupTipPanel.ShowTip(Language[10828]) PopupTipPanel.ShowTip(Language[10828])
return return