修改用户头像数据类型

This commit is contained in:
Mattuy Lee
2018-12-24 17:54:50 +08:00
parent f28ad69067
commit 612a5b8645
4 changed files with 80 additions and 85 deletions
@@ -4,7 +4,6 @@ using System.Linq;
using System.Text;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Drawing;
using System.IO;
//StormClient对数据的处理相关内容
@@ -100,8 +99,7 @@ namespace Interact
};
if (int.Parse(head[AttrNames.Photo].ToString()) > 0)
{
MemoryStream ms = new MemoryStream(data);
user.Photo = Image.FromStream(ms);
user.Photo = new MemoryStream(data);
} //用户头像数据
OnLoginDone?.Invoke(resultHead, user);
}
@@ -171,8 +169,7 @@ namespace Interact
}; //基础数据
if (int.Parse(head[AttrNames.Photo].ToString()) > 0)
{
MemoryStream ms = new MemoryStream(data);
user.Photo = Image.FromStream(ms);
user.Photo = new MemoryStream(data);
} //头像数据
//加入临时用户列表缓存
User[] users;