mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-03-26 17:47:21 +08:00
添加项目文件。
This commit is contained in:
45
CoreCms.Net.WeChat.Service/Models/PostModel.cs
Normal file
45
CoreCms.Net.WeChat.Service/Models/PostModel.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2021/7/29 21:25:51
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CoreCms.Net.WeChat.Service.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// 微信公众服务器Post过来的加密参数集合(不包括PostData)
|
||||
/// <para>如需使用 NeuChar,需要在 MessageHandler 中提供 PostModel 并设置 AppId</para>
|
||||
/// </summary>
|
||||
public class PostModel : EncryptPostModel
|
||||
{
|
||||
public override string DomainId
|
||||
{
|
||||
get => this.AppId;
|
||||
set => this.AppId = value;
|
||||
}
|
||||
|
||||
public string AppId { get; set; }
|
||||
|
||||
/// <summary>设置服务器内部保密信息</summary>
|
||||
/// <param name="token"></param>
|
||||
/// <param name="encodingAESKey"></param>
|
||||
/// <param name="appId"></param>
|
||||
public void SetSecretInfo(string token, string encodingAESKey, string appId)
|
||||
{
|
||||
this.Token = token;
|
||||
this.EncodingAESKey = encodingAESKey;
|
||||
this.AppId = appId;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user