You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
967 B
29 lines
967 B
//DPBMARK_FILE MP
|
|
|
|
using Senparc.Weixin.Entities.TemplateMessage;
|
|
using Senparc.Weixin.MP.AdvancedAPIs.TemplateMessage;
|
|
|
|
namespace Znyc.Recruitment.Admin.WeChat.CommonService.TemplateMessage
|
|
{
|
|
/// <summary>
|
|
/// 支付成功模板消息(购买成功通知)
|
|
/// </summary>
|
|
public class WeixinTemplate_PaySuccess : TemplateMessageBase
|
|
{
|
|
private const string TEMPLATE_ID = "66Gf81swxfWt_P_HkH0Bapvj1nlpiWGmEkXDeCvWcVo"; //每个公众号都不同,需要根据实际情况修改
|
|
|
|
public WeixinTemplate_PaySuccess(string url, string productName, string notice)
|
|
: base(TEMPLATE_ID, url, "购买成功通知")
|
|
{
|
|
name = new TemplateDataItem(productName);
|
|
remark = new TemplateDataItem(notice);
|
|
}
|
|
|
|
public TemplateDataItem name { get; set; }
|
|
|
|
/// <summary>
|
|
/// Time
|
|
/// </summary>
|
|
public TemplateDataItem remark { get; set; }
|
|
}
|
|
}
|