mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-21 02:58:06 +08:00
style: clean code
This commit is contained in:
@@ -96,9 +96,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
|||||||
.SetQueryParam("access_token", request.AccessToken)
|
.SetQueryParam("access_token", request.AccessToken)
|
||||||
.SetQueryParam("external_userid", request.ExternalUserId);
|
.SetQueryParam("external_userid", request.ExternalUserId);
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(request.NextCursor))
|
|
||||||
request.NextCursor = request.NextCursor;
|
|
||||||
|
|
||||||
return await client.SendRequestWithJsonAsync<Models.CgibinExternalContactGetResponse>(flurlReq, cancellationToken: cancellationToken);
|
return await client.SendRequestWithJsonAsync<Models.CgibinExternalContactGetResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -14,12 +14,5 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
|||||||
[Newtonsoft.Json.JsonIgnore]
|
[Newtonsoft.Json.JsonIgnore]
|
||||||
[System.Text.Json.Serialization.JsonIgnore]
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
public string ExternalUserId { get; set; } = string.Empty;
|
public string ExternalUserId { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 获取或设置翻页标记。
|
|
||||||
/// </summary>
|
|
||||||
[Newtonsoft.Json.JsonIgnore]
|
|
||||||
[System.Text.Json.Serialization.JsonIgnore]
|
|
||||||
public string? NextCursor { get; set; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -221,7 +221,7 @@ namespace SKIT.FlurlHttpClient.Wechat
|
|||||||
{
|
{
|
||||||
using StringReader reader = new StringReader(xml);
|
using StringReader reader = new StringReader(xml);
|
||||||
XmlSerializer xmlSerializer = new XmlSerializer(type, new XmlRootAttribute("xml"));
|
XmlSerializer xmlSerializer = new XmlSerializer(type, new XmlRootAttribute("xml"));
|
||||||
var obj = xmlSerializer.Deserialize(reader);
|
xmlSerializer.Deserialize(reader);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user