You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
914 B
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

namespace Ds.Module.WeChat.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;
}
}
}