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

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