diff --git a/server/matchserver/common/types.go b/server/matchserver/common/types.go index ba9b664d..e950375b 100644 --- a/server/matchserver/common/types.go +++ b/server/matchserver/common/types.go @@ -18,6 +18,7 @@ type Team interface { OnPlayerOffline(Player) OnPlayerOnline(Player) IsCopy() bool + SendUpdateNotify() } type TeamMgr interface { diff --git a/server/matchserver/player/playermgr.go b/server/matchserver/player/playermgr.go index 17fc70e0..b951226f 100644 --- a/server/matchserver/player/playermgr.go +++ b/server/matchserver/player/playermgr.go @@ -185,6 +185,7 @@ func (this *playerMgr) apiAuthCb(hdr *f5.MsgHdr, msg *cs.CMLogin, rsp f5.HttpCli rspMsg.TeamUuid = proto.String(team.GetTeamUuid()) rspMsg.ServerInfo = proto.String(mt.Table.MatchCluster.GetServerInfo()) GetWspListener().SendProxyMsg(hdr.Conn, hdr.SocketHandle, &rspMsg) + team.SendUpdateNotify() } else if msg.GetJoinTeamParam() != nil { team := GetTeamMgr().GetTeamByUuid(msg.GetJoinTeamParam().GetTeamUuid()) if team == nil { @@ -225,6 +226,7 @@ func (this *playerMgr) apiAuthCb(hdr *f5.MsgHdr, msg *cs.CMLogin, rsp f5.HttpCli rspMsg.TeamUuid = proto.String(team.GetTeamUuid()) rspMsg.ServerInfo = proto.String(mt.Table.MatchCluster.GetServerInfo()) GetWspListener().SendProxyMsg(hdr.Conn, hdr.SocketHandle, &rspMsg) + team.SendUpdateNotify() } else { panic("CMLogin Param error") }