From 6d14691fe90efd8de6af84611b065abe397da959 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Thu, 14 Apr 2022 20:41:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(work):=20=E4=BF=AE=E5=A4=8D=E9=83=A8?= =?UTF-8?q?=E5=88=86=E4=BA=8B=E4=BB=B6=E9=80=9A=E7=9F=A5=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E4=B8=AD=E6=95=B0=E7=BB=84=E7=B1=BB=E5=9E=8B=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=8F=8D=E5=BA=8F=E5=88=97=E5=8C=96=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Events/Approval/SystemApprovalChangeEvent.cs | 10 +++++----- .../Events/Contact/ChangeContactEvent.cs | 2 +- .../Events/Push/TemplateCardPushEvent.cs | 4 ++-- .../Events/Reply/NewsMessageReply.cs | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Approval/SystemApprovalChangeEvent.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Approval/SystemApprovalChangeEvent.cs index c42861a4..67a82d9c 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Approval/SystemApprovalChangeEvent.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Approval/SystemApprovalChangeEvent.cs @@ -82,7 +82,7 @@ /// /// 获取或设置审批意见附件 MediaId 列表。 /// - [System.Xml.Serialization.XmlArrayItem("Attach", Type = typeof(string), IsNullable = true)] + [System.Xml.Serialization.XmlElement("Attach", Type = typeof(string), IsNullable = true)] public string[]? SpeechMediaIdList { get; set; } } } @@ -141,7 +141,7 @@ /// /// 获取或设置评论内容附件 MediaId 列表。 /// - [System.Xml.Serialization.XmlArrayItem("Attach", Type = typeof(string))] + [System.Xml.Serialization.XmlElement("Attach", Type = typeof(string))] public string[] MediaIdList { get; set; } = default!; /// @@ -197,19 +197,19 @@ /// /// 获取或设置抄送人列表。 /// - [System.Xml.Serialization.XmlArrayItem("Notifyer", Type = typeof(Types.Notifier))] + [System.Xml.Serialization.XmlElement("Notifyer", Type = typeof(Types.Notifier))] public Types.Notifier[]? NotifyerList { get; set; } /// /// 获取或设置审批流程列表。 /// - [System.Xml.Serialization.XmlArrayItem("SpRecord", Type = typeof(Types.Record))] + [System.Xml.Serialization.XmlElement("SpRecord", Type = typeof(Types.Record))] public Types.Record[] RecordList { get; set; } = default!; /// /// 获取或设置评论列表。 /// - [System.Xml.Serialization.XmlArrayItem("Comments", Type = typeof(Types.Comment))] + [System.Xml.Serialization.XmlElement("Comments", Type = typeof(Types.Comment))] public Types.Comment[] CommentList { get; set; } = default!; } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Contact/ChangeContactEvent.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Contact/ChangeContactEvent.cs index 07fbd88e..7b71e5d0 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Contact/ChangeContactEvent.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Contact/ChangeContactEvent.cs @@ -81,7 +81,7 @@ /// /// 获取或设置自定义字段列表。 /// - [System.Xml.Serialization.XmlArrayItem("Item", Type = typeof(Types.Attribute))] + [System.Xml.Serialization.XmlElement("Item", Type = typeof(Types.Attribute))] public Types.Attribute[] AttributeList { get; set; } = default!; } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Push/TemplateCardPushEvent.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Push/TemplateCardPushEvent.cs index e2b77819..f4eb393b 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Push/TemplateCardPushEvent.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Push/TemplateCardPushEvent.cs @@ -18,7 +18,7 @@ /// /// 获取或设置选项列表。 /// - [System.Xml.Serialization.XmlArrayItem("OpitonId", Type = typeof(string))] + [System.Xml.Serialization.XmlElement("OpitonId", Type = typeof(string))] public string[] Items { get; set; } = default!; } } @@ -41,7 +41,7 @@ /// /// 获取或设置下拉框列表。 /// - [System.Xml.Serialization.XmlArrayItem("SelectedItem", Type = typeof(SelectItem))] + [System.Xml.Serialization.XmlElement("SelectedItem", Type = typeof(SelectItem))] public SelectItem[]? Items { get; set; } = default!; } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Reply/NewsMessageReply.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Reply/NewsMessageReply.cs index 85fc0a3c..66c793dc 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Reply/NewsMessageReply.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Reply/NewsMessageReply.cs @@ -42,7 +42,7 @@ /// /// 获取或设置图文列表。 /// - [System.Xml.Serialization.XmlArrayItem("item", Type = typeof(ArticleItem))] + [System.Xml.Serialization.XmlElement("item", Type = typeof(ArticleItem))] public ArticleItem[] Items { get; set; } = new ArticleItem[0]; } }