using FL.Data; using XGame.Framework.Network; namespace FL.Network { public class UserInfoPushCtrl : MsgController { protected override void OnProcess(UserInfoPush message, object context) { if (message == null) return; PlayerData.Instance.UID = message.uuid; PlayerData.Instance.ServerId = message.sid; PlayerData.Instance.Name = message.name; PlayerData.Instance.HeadIcon = message.head; PlayerData.Instance.WXHeadIcon = message.wxhead; PlayerData.Instance.Level = message.level; PlayerData.Instance.Exp = message.exp; PlayerData.Instance.LastLoginTime = (long)message.lastlogin*1000; PlayerData.Instance.Recharge = message.money; } } }