commenly commit

This commit is contained in:
Mattuy
2018-12-15 21:10:10 +08:00
parent a953aca9f1
commit 5788d698eb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ namespace Interact
//发起登录完成事件 //发起登录完成事件
if (head.Error != "") if (head.Error != "")
OnLoginDone?.Invoke(head, null); OnLoginDone?.Invoke(head, null);
JObject dataObj = (JObject)JsonConvert.SerializeObject(data); JObject dataObj = (JObject)JsonConvert.DeserializeObject(Encoding.UTF8.GetString(data));
User user = new User User user = new User
{ {
Name = dataObj[AttrNames.User].ToString(), Name = dataObj[AttrNames.User].ToString(),
+1 -1
View File
@@ -32,7 +32,7 @@ namespace StormChat
return; return;
} }
btnLogin.Enabled = false; btnLogin.Enabled = false;
StormClient.RequestLogin(txtUser.Text, txtPassword.Text); StormClient.QueueLogin(txtUser.Text, txtPassword.Text);
} }
//登录结果处理 //登录结果处理