This commit is contained in:
aozhiwei 2024-04-16 21:21:47 +08:00
parent a4effeb06e
commit adcaf960c0

View File

@ -183,30 +183,6 @@ func (this *playerMgr) apiAuthCb(hdr *f5.MsgHdr, msg *cs.CMLogin, reqId int64,
rspMsg.AccountId = proto.String(rspObj.Info.AccountID)
rspMsg.ServerInfo = proto.String(mt.Table.IMCluster.GetServerInfo())
GetWspListener().SendProxyMsg(hdr.Conn, hdr.SocketHandle, &rspMsg)
/*
// Add player profile
playerProfile := &PlayerProfile{
AccountId: accountId,
Username: resObj.Info.Name,
Avatar: q5.ToInt32(resObj.Info.Avatar),
AvatarHead: q5.ToInt32(resObj.Info.AvatarHead),
Star: q5.ToInt32(resObj.Info.Star),
Rank: q5.ToInt32(resObj.Info.Rank),
OnlineStatus: constant.OnlineStatus,
LastLoginTime: q5.ToInt32(resObj.Info.LastLoginTime),
}
if len(resObj.Info.HistorySeasons) == 1 {
playerProfile.TotalKills = q5.ToInt32(resObj.Info.HistorySeasons[0].TotalKills)
playerProfile.TotalWinTimes = q5.ToInt32(resObj.Info.HistorySeasons[0].WinTimes)
} else {
playerProfile.TotalKills = 0
playerProfile.TotalWinTimes = 0
}
version := cacheMgr.getCacheVersion()
cacheMgr.AddPlayerProfile(version, playerProfile)
friendMgr.LoadUser(accountId)
*/
}
func (this *playerMgr) reportServerState(masterIp string, masterPort int32) {