1234567891011121314151617181920212223242526 |
- using XGame.Framework.Network;
- namespace FL.Network
- {
- public class PlayerInfoPushCtrl : MsgController<PlayerInfoPush>
- {
- 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<int, PlayerInfoListOne>();
- foreach ( var item in message.list )
- {
- dto.serverPlayerMap.Add(item.sid, item);
- }
- }
- EventSingle.Instance.Notify(EventDefine.LoginPlayerInfos, dto);
- }
- }
- }
|