|
|
|
@ -91,7 +91,7 @@ namespace CameraCard
|
|
|
|
|
var client = HttpClientFactory.Create();
|
|
|
|
|
var content = new StringContent(new JavaScriptSerializer().Serialize(new { userName = userName, password = password }), Encoding.UTF8, "application/json");
|
|
|
|
|
var response = client.PostAsync(url, content).Result;
|
|
|
|
|
this._progress?.SetProgress("正在登录,请稍候", 60);
|
|
|
|
|
this._progress?.SetProgress("正在登录,请稍候", 50);
|
|
|
|
|
if (response.StatusCode == HttpStatusCode.OK)
|
|
|
|
|
{
|
|
|
|
|
var result = new JavaScriptSerializer().Deserialize<LoginResponse>(response.Content.ReadAsStringAsync().Result);
|
|
|
|
|