From 844818fd71bbcef50f92281b2b66da6ddb67ec50 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Sun, 1 May 2022 22:07:51 +0800 Subject: [PATCH] =?UTF-8?q?feat(wxapi):=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/MpJob/FreePublishJobFinishEvent.cs | 4 ++-- .../Events/MpJob/MassSendJobFinishEvent.cs | 4 ++-- .../Events/MpReply/NewsMessageReply.cs | 2 +- .../Events/OpenComponent/WxaAppealRecordEvent.cs | 4 ++-- .../Events/OpenProduct/OpenProductSceneGroupAuditEvent.cs | 2 +- .../Events/WxaExpress/AddExpressPathEvent.cs | 2 +- .../Events/WxaExpress/AddWaybillEvent.cs | 2 +- .../Events/WxaMiniShop/ComplaintCallbackEvent.cs | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/MpJob/FreePublishJobFinishEvent.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/MpJob/FreePublishJobFinishEvent.cs index e3f33696..dbdb2a9f 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/MpJob/FreePublishJobFinishEvent.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/MpJob/FreePublishJobFinishEvent.cs @@ -49,7 +49,7 @@ /// [Newtonsoft.Json.JsonProperty("item")] [System.Text.Json.Serialization.JsonPropertyName("item")] - [System.Xml.Serialization.XmlArrayItem("item", Type = typeof(Types.Item))] + [System.Xml.Serialization.XmlElement("item", Type = typeof(Types.Item))] public Types.Item[] List { get; set; } = default!; } } @@ -91,7 +91,7 @@ /// [Newtonsoft.Json.JsonProperty("fail_idx")] [System.Text.Json.Serialization.JsonPropertyName("fail_idx")] - [System.Xml.Serialization.XmlArrayItem("fail_idx", Type = typeof(int))] + [System.Xml.Serialization.XmlElement("fail_idx", Type = typeof(int))] public int[]? FailedIndexList { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/MpJob/MassSendJobFinishEvent.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/MpJob/MassSendJobFinishEvent.cs index 5146787e..ad738133 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/MpJob/MassSendJobFinishEvent.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/MpJob/MassSendJobFinishEvent.cs @@ -89,7 +89,7 @@ /// [Newtonsoft.Json.JsonProperty("item")] [System.Text.Json.Serialization.JsonPropertyName("item")] - [System.Xml.Serialization.XmlArrayItem("item", Type = typeof(CopyrightCheckResultItem))] + [System.Xml.Serialization.XmlElement("item", Type = typeof(CopyrightCheckResultItem))] public CopyrightCheckResultItem[] Items { get; set; } = default!; } } @@ -149,7 +149,7 @@ /// [Newtonsoft.Json.JsonProperty("item")] [System.Text.Json.Serialization.JsonPropertyName("item")] - [System.Xml.Serialization.XmlArrayItem("item", Type = typeof(ArticleUrlResultItem))] + [System.Xml.Serialization.XmlElement("item", Type = typeof(ArticleUrlResultItem))] public ArticleUrlResultItem[] Items { get; set; } = default!; } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/MpReply/NewsMessageReply.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/MpReply/NewsMessageReply.cs index 50d70988..b4db0415 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/MpReply/NewsMessageReply.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/MpReply/NewsMessageReply.cs @@ -40,7 +40,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]; } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenComponent/WxaAppealRecordEvent.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenComponent/WxaAppealRecordEvent.cs index bb1c6e06..41a7a8b0 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenComponent/WxaAppealRecordEvent.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenComponent/WxaAppealRecordEvent.cs @@ -49,7 +49,7 @@ /// /// 获取或设置证明材料 MediaId 列表。 /// - [System.Xml.Serialization.XmlArrayItem("proof_material_id", Type = typeof(string))] + [System.Xml.Serialization.XmlElement("proof_material_id", Type = typeof(string))] public string[] ProofMediaIdList { get; set; } = default!; } } @@ -87,7 +87,7 @@ /// /// 获取或设置申诉材料列表。 /// - [System.Xml.Serialization.XmlArrayItem("material", Type = typeof(Types.Material), IsNullable = true)] + [System.Xml.Serialization.XmlElement("material", Type = typeof(Types.Material), IsNullable = true)] public Types.Material[]? MaterialList { get; set; } /// diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenProduct/OpenProductSceneGroupAuditEvent.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenProduct/OpenProductSceneGroupAuditEvent.cs index 7a57364b..92d15bad 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenProduct/OpenProductSceneGroupAuditEvent.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenProduct/OpenProductSceneGroupAuditEvent.cs @@ -69,7 +69,7 @@ /// [Newtonsoft.Json.JsonProperty("scene_group_ext_list")] [System.Text.Json.Serialization.JsonPropertyName("scene_group_ext_list")] - [System.Xml.Serialization.XmlArrayItem("scene_group_ext_list", Type = typeof(Types.SceneGroupExtra))] + [System.Xml.Serialization.XmlElement("scene_group_ext_list", Type = typeof(Types.SceneGroupExtra))] public Types.SceneGroupExtra[] SceneGroupExtraList { get; set; } = default!; } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/WxaExpress/AddExpressPathEvent.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/WxaExpress/AddExpressPathEvent.cs index 2228c2d2..2b02c4ba 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/WxaExpress/AddExpressPathEvent.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/WxaExpress/AddExpressPathEvent.cs @@ -81,7 +81,7 @@ /// [Newtonsoft.Json.JsonProperty("Actions")] [System.Text.Json.Serialization.JsonPropertyName("Actions")] - [System.Xml.Serialization.XmlArrayItem("Actions", Type = typeof(Types.Action))] + [System.Xml.Serialization.XmlElement("Actions", Type = typeof(Types.Action))] public Types.Action[] ActionList { get; set; } = default!; } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/WxaExpress/AddWaybillEvent.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/WxaExpress/AddWaybillEvent.cs index bedc9471..c77a8df3 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/WxaExpress/AddWaybillEvent.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/WxaExpress/AddWaybillEvent.cs @@ -164,7 +164,7 @@ /// [Newtonsoft.Json.JsonProperty("DetailList")] [System.Text.Json.Serialization.JsonPropertyName("DetailList")] - [System.Xml.Serialization.XmlArrayItem("DetailList", Type = typeof(Types.GoodsDetail))] + [System.Xml.Serialization.XmlElement("DetailList", Type = typeof(Types.GoodsDetail))] public Types.GoodsDetail[]? GoodsDetailList { get; set; } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/WxaMiniShop/ComplaintCallbackEvent.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/WxaMiniShop/ComplaintCallbackEvent.cs index d0f85ce9..6c01442a 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/WxaMiniShop/ComplaintCallbackEvent.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/WxaMiniShop/ComplaintCallbackEvent.cs @@ -171,7 +171,7 @@ /// [Newtonsoft.Json.JsonProperty("history")] [System.Text.Json.Serialization.JsonPropertyName("history")] - [System.Xml.Serialization.XmlArrayItem("history", Type = typeof(Types.ComplaintHistory))] + [System.Xml.Serialization.XmlElement("history", Type = typeof(Types.ComplaintHistory))] public Types.ComplaintHistory[] ComplaintHistoryList { get; set; } = default!; } }