1234567891011121314151617181920212223 |
- using FL.Data;
- using XGame.Framework.Network;
- namespace FL.Network
- {
- public class UserInfoPushCtrl : MsgController<UserInfoPush>
- {
- 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;
- }
- }
- }
|