UserInfoPushCtrl.cs 761 B

123456789101112131415161718192021
  1. using FL.Data;
  2. using XGame.Framework.Network;
  3. namespace FL.Network
  4. {
  5. public class UserInfoPushCtrl : MsgController<UserInfoPush>
  6. {
  7. protected override void OnProcess(UserInfoPush message, object context)
  8. {
  9. PlayerData.Instance.UID = message.uuid;
  10. PlayerData.Instance.ServerId = message.sid;
  11. PlayerData.Instance.Name = message.name;
  12. PlayerData.Instance.HeadIcon = message.head;
  13. PlayerData.Instance.WXHeadIcon = message.wxhead;
  14. PlayerData.Instance.Level = message.level;
  15. PlayerData.Instance.Exp = message.exp;
  16. PlayerData.Instance.LastLoginTime = message.lastlogin;
  17. PlayerData.Instance.Recharge = message.money;
  18. }
  19. }
  20. }