1
This commit is contained in:
parent
a4effeb06e
commit
adcaf960c0
@ -183,30 +183,6 @@ func (this *playerMgr) apiAuthCb(hdr *f5.MsgHdr, msg *cs.CMLogin, reqId int64,
|
|||||||
rspMsg.AccountId = proto.String(rspObj.Info.AccountID)
|
rspMsg.AccountId = proto.String(rspObj.Info.AccountID)
|
||||||
rspMsg.ServerInfo = proto.String(mt.Table.IMCluster.GetServerInfo())
|
rspMsg.ServerInfo = proto.String(mt.Table.IMCluster.GetServerInfo())
|
||||||
GetWspListener().SendProxyMsg(hdr.Conn, hdr.SocketHandle, &rspMsg)
|
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) {
|
func (this *playerMgr) reportServerState(masterIp string, masterPort int32) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user