Skip to content

Commit

Permalink
MP v16.20.2 #2958 感谢 @mojinxun #2951 感谢 @WanderingGrass
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreySu committed Nov 30, 2023
1 parent 5a7ac8f commit 6e0b4a1
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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
{
/// <summary>
/// 代币支付推送
/// </summary>
public class RequestMessageEvent_XPay_Coin_Pay_Notify : RequestMessageEventBase, IRequestMessageEventBase
{
public override Event Event
Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
3 changes: 3 additions & 0 deletions src/Senparc.Weixin.MP/Senparc.Weixin.MP/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@
修改标识:lishewen - 20210809
修改描述:v16.14.2 添加 Event.submit_invoice_title
修改标识:Senparc - 20231130
修改描述:v16.20.2 Event 添加“小程序虚拟支付”相关枚举
----------------------------------------------------------------*/

using System;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
修改标识:lishewen - 20210809
修改描述:v16.14.2 添加 OnEvent_Submit_Invoice_TitleAsync() 方法
修改标识:Senparc - 20231130
修改描述:v16.20.2 添加“小程序虚拟支付”相关事件
----------------------------------------------------------------*/

using Senparc.NeuChar.Entities;
Expand Down Expand Up @@ -779,14 +782,32 @@ public virtual async Task<IResponseMessageBase> OnEvent_Subscribe_Msg_SentReques
#endregion

#region 小程序虚拟支付

/// <summary>
/// 小程序虚拟支付 - 道具发货推送
/// </summary>
/// <param name="requestMessage"></param>
/// <returns></returns>
public virtual async Task<IResponseMessageBase> OnEvent_XPay_Goods_Deliver_NotifyAsync(RequestMessageEvent_XPay_Goods_Deliver_Notify requestMessage)
{
return await DefaultAsyncMethod(requestMessage, () => OnEvent_XPay_Goods_Deliver_Notify(requestMessage)).ConfigureAwait(false);
}

/// <summary>
/// 小程序虚拟支付 - 代币支付推送
/// </summary>
/// <param name="requestMessage"></param>
/// <returns></returns>
public virtual async Task<IResponseMessageBase> OnEvent_XPay_Coin_Pay_NotifyAsync(RequestMessageEvent_XPay_Coin_Pay_Notify requestMessage)
{
return await DefaultAsyncMethod(requestMessage, () => OnEvent_XPay_Coin_Pay_Notify(requestMessage)).ConfigureAwait(false);
}

/// <summary>
/// 小程序虚拟支付 - 退款推送
/// </summary>
/// <param name="requestMessage"></param>
/// <returns></returns>
public virtual async Task<IResponseMessageBase> OnEvent_XPay_Refund_NotifyAsync(RequestMessageEvent_XPay_Refund_Notify requestMessage)
{
return await DefaultAsyncMethod(requestMessage, () => OnEvent_XPay_Refund_Notify(requestMessage)).ConfigureAwait(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
修改标识:lishewen - 20210809
修改描述:v16.14.2 添加 OnEvent_Submit_Invoice_Title() 方法
修改标识:Senparc - 20231130
修改描述:v16.20.2 添加“小程序虚拟支付”相关事件
----------------------------------------------------------------*/

using Senparc.NeuChar.Entities;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net462;netstandard2.0;netstandard2.1</TargetFrameworks>
<Version>16.20.1</Version>
<Version>16.20.2</Version>
<AssemblyName>Senparc.Weixin.MP</AssemblyName>
<RootNamespace>Senparc.Weixin.MP</RootNamespace>
<GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Release' ">true</GeneratePackageOnBuild>
Expand Down Expand Up @@ -527,6 +527,7 @@
v16.18.14 JSSDKHelper.GetNoncestr() 弃用 MD5 加密方法
v16.19.0 MessageHandler 和客服接口支持长文本自动切割后连续发送
v16.20.1 添加 TemplateApi.AddTemplate() 参数
v16.20.2 添加“小程序虚拟支付 ”功能
</PackageReleaseNotes>
<RepositoryUrl>https://github.com/JeffreySu/WeiXinMPSDK</RepositoryUrl>
</PropertyGroup>
Expand Down

0 comments on commit 6e0b4a1

Please sign in to comment.