UserInfoPushCtrl.cs 814 B

1234567891011121314151617181920212223
  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. if (message == null) return;
  10. PlayerData.Instance.UID = message.uuid;
  11. PlayerData.Instance.ServerId = message.sid;
  12. PlayerData.Instance.Name = message.name;
  13. PlayerData.Instance.HeadIcon = message.head;
  14. PlayerData.Instance.WXHeadIcon = message.wxhead;
  15. PlayerData.Instance.Level = message.level;
  16. PlayerData.Instance.Exp = message.exp;
  17. PlayerData.Instance.LastLoginTime = (long)message.lastlogin*1000;
  18. PlayerData.Instance.Recharge = message.money;
  19. }
  20. }
  21. }