using XGame.Framework.Network; namespace FL.Network { public class PlayerInfoPushCtrl : MsgController { protected override void OnProcess(PlayerInfoPush message, object context) { var dto = new LoginPlayerInfoDto() { accountId = message.uid, lastServerId = message.sid, token = message.token, }; if (message.list != null ) { dto.serverPlayerMap = new System.Collections.Generic.Dictionary(); foreach ( var item in message.list ) { dto.serverPlayerMap.Add(item.sid, item); } } EventSingle.Instance.Notify(EventDefine.LoginPlayerInfos, dto); } } }