From cfb53bb8ee60e0874a88b2b86c31376fc46eebe5 Mon Sep 17 00:00:00 2001 From: JeffreySu Date: Thu, 4 Apr 2024 23:08:34 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E9=97=AE=E9=A2=98=20#2997?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Request/Event/RequestMessageEvent_TemplateCardClick.cs | 2 +- src/Senparc.Weixin.Work/Senparc.Weixin.Work/Enums.cs | 2 +- .../MessageHandlers/Async/WorkMessageHandler.Async.cs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Senparc.Weixin.Work/Senparc.Weixin.Work/Entities/Request/Event/RequestMessageEvent_TemplateCardClick.cs b/src/Senparc.Weixin.Work/Senparc.Weixin.Work/Entities/Request/Event/RequestMessageEvent_TemplateCardClick.cs index 451f6b9a52..71f8a11a6d 100644 --- a/src/Senparc.Weixin.Work/Senparc.Weixin.Work/Entities/Request/Event/RequestMessageEvent_TemplateCardClick.cs +++ b/src/Senparc.Weixin.Work/Senparc.Weixin.Work/Entities/Request/Event/RequestMessageEvent_TemplateCardClick.cs @@ -13,7 +13,7 @@ using System.Text; using System.Threading.Tasks; -namespace Qubit.Weixin.Work.Entities +namespace Senparc.Weixin.Work.Entities { public class RequestMessageEvent_TemplateCardClick : RequestMessageEventBase, IRequestMessageEventBase, IRequestMessageEventKey { diff --git a/src/Senparc.Weixin.Work/Senparc.Weixin.Work/Enums.cs b/src/Senparc.Weixin.Work/Senparc.Weixin.Work/Enums.cs index d8555f373e..ffd8e7e6bf 100644 --- a/src/Senparc.Weixin.Work/Senparc.Weixin.Work/Enums.cs +++ b/src/Senparc.Weixin.Work/Senparc.Weixin.Work/Enums.cs @@ -220,7 +220,7 @@ public enum Event /// /// 模板卡片点击回调事件 /// - TEMPLATE_CARD_CLICK + TEMPLATE_CARD_CLICK, } public enum TencentGender diff --git a/src/Senparc.Weixin.Work/Senparc.Weixin.Work/MessageHandlers/Async/WorkMessageHandler.Async.cs b/src/Senparc.Weixin.Work/Senparc.Weixin.Work/MessageHandlers/Async/WorkMessageHandler.Async.cs index 8a1cf36ddf..010ce52a62 100644 --- a/src/Senparc.Weixin.Work/Senparc.Weixin.Work/MessageHandlers/Async/WorkMessageHandler.Async.cs +++ b/src/Senparc.Weixin.Work/Senparc.Weixin.Work/MessageHandlers/Async/WorkMessageHandler.Async.cs @@ -397,6 +397,7 @@ public virtual async Task OnEventRequestAsync(IRequest responseMessage = await OnEvent_TemplateCardEventClickRequestAsync( RequestMessage as RequestMessageEvent_TemplateCardClick); + break; default: throw new UnknownRequestMsgTypeException("未知的Event下属请求信息", null); } From d093c0a35d554bed51532d3e88b1082ec9a7ba65 Mon Sep 17 00:00:00 2001 From: JeffreySu Date: Thu, 4 Apr 2024 23:08:34 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E9=97=AE=E9=A2=98=20#2997?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Request/Event/RequestMessageEvent_TemplateCardClick.cs | 2 +- .../MessageHandlers/Async/WorkMessageHandler.Async.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Senparc.Weixin.Work/Senparc.Weixin.Work/Entities/Request/Event/RequestMessageEvent_TemplateCardClick.cs b/src/Senparc.Weixin.Work/Senparc.Weixin.Work/Entities/Request/Event/RequestMessageEvent_TemplateCardClick.cs index 451f6b9a52..71f8a11a6d 100644 --- a/src/Senparc.Weixin.Work/Senparc.Weixin.Work/Entities/Request/Event/RequestMessageEvent_TemplateCardClick.cs +++ b/src/Senparc.Weixin.Work/Senparc.Weixin.Work/Entities/Request/Event/RequestMessageEvent_TemplateCardClick.cs @@ -13,7 +13,7 @@ using System.Text; using System.Threading.Tasks; -namespace Qubit.Weixin.Work.Entities +namespace Senparc.Weixin.Work.Entities { public class RequestMessageEvent_TemplateCardClick : RequestMessageEventBase, IRequestMessageEventBase, IRequestMessageEventKey { diff --git a/src/Senparc.Weixin.Work/Senparc.Weixin.Work/MessageHandlers/Async/WorkMessageHandler.Async.cs b/src/Senparc.Weixin.Work/Senparc.Weixin.Work/MessageHandlers/Async/WorkMessageHandler.Async.cs index 8a1cf36ddf..010ce52a62 100644 --- a/src/Senparc.Weixin.Work/Senparc.Weixin.Work/MessageHandlers/Async/WorkMessageHandler.Async.cs +++ b/src/Senparc.Weixin.Work/Senparc.Weixin.Work/MessageHandlers/Async/WorkMessageHandler.Async.cs @@ -397,6 +397,7 @@ public virtual async Task OnEventRequestAsync(IRequest responseMessage = await OnEvent_TemplateCardEventClickRequestAsync( RequestMessage as RequestMessageEvent_TemplateCardClick); + break; default: throw new UnknownRequestMsgTypeException("未知的Event下属请求信息", null); }