diff --git a/Interact/Handle.cs b/Interact/Handle.cs index ec30600..b2871e3 100644 --- a/Interact/Handle.cs +++ b/Interact/Handle.cs @@ -51,7 +51,7 @@ namespace Interact //发起登录完成事件 if (head.Error != "") OnLoginDone?.Invoke(head, null); - JObject dataObj = (JObject)JsonConvert.SerializeObject(data); + JObject dataObj = (JObject)JsonConvert.DeserializeObject(Encoding.UTF8.GetString(data)); User user = new User { Name = dataObj[AttrNames.User].ToString(), diff --git a/StormChat/LogForm.cs b/StormChat/LogForm.cs index 7b99280..abaed82 100644 --- a/StormChat/LogForm.cs +++ b/StormChat/LogForm.cs @@ -32,7 +32,7 @@ namespace StormChat return; } btnLogin.Enabled = false; - StormClient.RequestLogin(txtUser.Text, txtPassword.Text); + StormClient.QueueLogin(txtUser.Text, txtPassword.Text); } //登录结果处理