1
This commit is contained in:
parent
ee1e393288
commit
25eca38433
@ -18,6 +18,7 @@ type Team interface {
|
||||
OnPlayerOffline(Player)
|
||||
OnPlayerOnline(Player)
|
||||
IsCopy() bool
|
||||
SendUpdateNotify()
|
||||
}
|
||||
|
||||
type TeamMgr interface {
|
||||
|
@ -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")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user