diff --git a/src/Senparc.Weixin.MP/Senparc.Weixin.MP/Entities/Request/Event/XPay/RequestMessageEvent_XPay_Coin_Pay_Notify.cs b/src/Senparc.Weixin.MP/Senparc.Weixin.MP/Entities/Request/Event/XPay/RequestMessageEvent_XPay_Coin_Pay_Notify.cs index 6473f39ca6..ed8be80ee9 100644 --- a/src/Senparc.Weixin.MP/Senparc.Weixin.MP/Entities/Request/Event/XPay/RequestMessageEvent_XPay_Coin_Pay_Notify.cs +++ b/src/Senparc.Weixin.MP/Senparc.Weixin.MP/Entities/Request/Event/XPay/RequestMessageEvent_XPay_Coin_Pay_Notify.cs @@ -1,5 +1,19 @@ -namespace Senparc.Weixin.MP.Entities +/*---------------------------------------------------------------- + Copyright (C) 2023 Senparc + + 文件名:RequestMessageEvent_XPay_Coin_Pay_Notify.cs + 文件功能描述:小程序虚拟支付 - 代币支付推送 + + + 创建标识:Senparc - 20231130 + +----------------------------------------------------------------*/ + +namespace Senparc.Weixin.MP.Entities { + /// + /// 代币支付推送 + /// public class RequestMessageEvent_XPay_Coin_Pay_Notify : RequestMessageEventBase, IRequestMessageEventBase { public override Event Event diff --git a/src/Senparc.Weixin.MP/Senparc.Weixin.MP/Entities/Request/Event/XPay/RequestMessageEvent_XPay_Goods_Deliver_Notify.cs b/src/Senparc.Weixin.MP/Senparc.Weixin.MP/Entities/Request/Event/XPay/RequestMessageEvent_XPay_Goods_Deliver_Notify.cs index ef38a49852..4a02823cec 100644 --- a/src/Senparc.Weixin.MP/Senparc.Weixin.MP/Entities/Request/Event/XPay/RequestMessageEvent_XPay_Goods_Deliver_Notify.cs +++ b/src/Senparc.Weixin.MP/Senparc.Weixin.MP/Entities/Request/Event/XPay/RequestMessageEvent_XPay_Goods_Deliver_Notify.cs @@ -1,4 +1,15 @@ -namespace Senparc.Weixin.MP.Entities +/*---------------------------------------------------------------- + Copyright (C) 2023 Senparc + + 文件名:RequestMessageEvent_XPay_Goods_Deliver_Notify.cs + 文件功能描述:小程序虚拟支付 - 道具发货推送 + + + 创建标识:Senparc - 20231130 + +----------------------------------------------------------------*/ + +namespace Senparc.Weixin.MP.Entities { public class RequestMessageEvent_XPay_Goods_Deliver_Notify : RequestMessageEventBase, IRequestMessageEventBase { diff --git a/src/Senparc.Weixin.MP/Senparc.Weixin.MP/Entities/Request/Event/XPay/RequestMessageEvent_XPay_Refund_Notify.cs b/src/Senparc.Weixin.MP/Senparc.Weixin.MP/Entities/Request/Event/XPay/RequestMessageEvent_XPay_Refund_Notify.cs index 63a8b4bdc5..9aef12db8c 100644 --- a/src/Senparc.Weixin.MP/Senparc.Weixin.MP/Entities/Request/Event/XPay/RequestMessageEvent_XPay_Refund_Notify.cs +++ b/src/Senparc.Weixin.MP/Senparc.Weixin.MP/Entities/Request/Event/XPay/RequestMessageEvent_XPay_Refund_Notify.cs @@ -1,4 +1,15 @@ -namespace Senparc.Weixin.MP.Entities +/*---------------------------------------------------------------- + Copyright (C) 2023 Senparc + + 文件名:RequestMessageEvent_XPay_Refund_Notify.cs + 文件功能描述:小程序虚拟支付 - 退款推送 + + + 创建标识:Senparc - 20231130 + +----------------------------------------------------------------*/ + +namespace Senparc.Weixin.MP.Entities { public class RequestMessageEvent_XPay_Refund_Notify : RequestMessageEventBase, IRequestMessageEventBase { diff --git a/src/Senparc.Weixin.MP/Senparc.Weixin.MP/Enums.cs b/src/Senparc.Weixin.MP/Senparc.Weixin.MP/Enums.cs index 7513a83791..174e619027 100644 --- a/src/Senparc.Weixin.MP/Senparc.Weixin.MP/Enums.cs +++ b/src/Senparc.Weixin.MP/Senparc.Weixin.MP/Enums.cs @@ -102,6 +102,9 @@ and limitations under the License. 修改标识:lishewen - 20210809 修改描述:v16.14.2 添加 Event.submit_invoice_title + 修改标识:Senparc - 20231130 + 修改描述:v16.20.2 Event 添加“小程序虚拟支付”相关枚举 + ----------------------------------------------------------------*/ using System; diff --git a/src/Senparc.Weixin.MP/Senparc.Weixin.MP/MessageHandlers/Async/MessageHandlerAsync.Event.cs b/src/Senparc.Weixin.MP/Senparc.Weixin.MP/MessageHandlers/Async/MessageHandlerAsync.Event.cs index 65aa11e3c1..f7bfe0223b 100644 --- a/src/Senparc.Weixin.MP/Senparc.Weixin.MP/MessageHandlers/Async/MessageHandlerAsync.Event.cs +++ b/src/Senparc.Weixin.MP/Senparc.Weixin.MP/MessageHandlers/Async/MessageHandlerAsync.Event.cs @@ -33,6 +33,9 @@ and limitations under the License. 修改标识:lishewen - 20210809 修改描述:v16.14.2 添加 OnEvent_Submit_Invoice_TitleAsync() 方法 + 修改标识:Senparc - 20231130 + 修改描述:v16.20.2 添加“小程序虚拟支付”相关事件 + ----------------------------------------------------------------*/ using Senparc.NeuChar.Entities; @@ -779,14 +782,32 @@ public virtual async Task OnEvent_Subscribe_Msg_SentReques #endregion #region 小程序虚拟支付 + + /// + /// 小程序虚拟支付 - 道具发货推送 + /// + /// + /// public virtual async Task OnEvent_XPay_Goods_Deliver_NotifyAsync(RequestMessageEvent_XPay_Goods_Deliver_Notify requestMessage) { return await DefaultAsyncMethod(requestMessage, () => OnEvent_XPay_Goods_Deliver_Notify(requestMessage)).ConfigureAwait(false); } + + /// + /// 小程序虚拟支付 - 代币支付推送 + /// + /// + /// public virtual async Task OnEvent_XPay_Coin_Pay_NotifyAsync(RequestMessageEvent_XPay_Coin_Pay_Notify requestMessage) { return await DefaultAsyncMethod(requestMessage, () => OnEvent_XPay_Coin_Pay_Notify(requestMessage)).ConfigureAwait(false); } + + /// + /// 小程序虚拟支付 - 退款推送 + /// + /// + /// public virtual async Task OnEvent_XPay_Refund_NotifyAsync(RequestMessageEvent_XPay_Refund_Notify requestMessage) { return await DefaultAsyncMethod(requestMessage, () => OnEvent_XPay_Refund_Notify(requestMessage)).ConfigureAwait(false); diff --git a/src/Senparc.Weixin.MP/Senparc.Weixin.MP/MessageHandlers/MessageHandler.Event.cs b/src/Senparc.Weixin.MP/Senparc.Weixin.MP/MessageHandlers/MessageHandler.Event.cs index fc02ec4d25..2a1f0855d3 100644 --- a/src/Senparc.Weixin.MP/Senparc.Weixin.MP/MessageHandlers/MessageHandler.Event.cs +++ b/src/Senparc.Weixin.MP/Senparc.Weixin.MP/MessageHandlers/MessageHandler.Event.cs @@ -36,6 +36,9 @@ and limitations under the License. 修改标识:lishewen - 20210809 修改描述:v16.14.2 添加 OnEvent_Submit_Invoice_Title() 方法 + 修改标识:Senparc - 20231130 + 修改描述:v16.20.2 添加“小程序虚拟支付”相关事件 + ----------------------------------------------------------------*/ using Senparc.NeuChar.Entities; diff --git a/src/Senparc.Weixin.MP/Senparc.Weixin.MP/Senparc.Weixin.MP.net8.csproj b/src/Senparc.Weixin.MP/Senparc.Weixin.MP/Senparc.Weixin.MP.net8.csproj index e2c03ea90e..b46bee0ff1 100644 --- a/src/Senparc.Weixin.MP/Senparc.Weixin.MP/Senparc.Weixin.MP.net8.csproj +++ b/src/Senparc.Weixin.MP/Senparc.Weixin.MP/Senparc.Weixin.MP.net8.csproj @@ -1,7 +1,7 @@ net462;netstandard2.0;netstandard2.1 - 16.20.1 + 16.20.2 Senparc.Weixin.MP Senparc.Weixin.MP true @@ -527,6 +527,7 @@ v16.18.14 JSSDKHelper.GetNoncestr() 弃用 MD5 加密方法 v16.19.0 MessageHandler 和客服接口支持长文本自动切割后连续发送 v16.20.1 添加 TemplateApi.AddTemplate() 参数 + v16.20.2 添加“小程序虚拟支付 ”功能 https://github.com/JeffreySu/WeiXinMPSDK