Files
大灰灰 4430e6f4e0 【修复】修复appsetting.json微信公众号配置项命名错误的问题。
【新增】增加微信公众号获取JS-Token并且全局缓存功能。
【新增】增加微信公众号获取JS-SDK使用权限签名算法。
2022-12-28 17:15:01 +08:00

49 lines
1.3 KiB
C#

using System;
using Microsoft.Extensions.Options;
namespace CoreCms.Net.WeChat.Service.Options
{
public partial class WeChatOptions : IOptions<WeChatOptions>
{
WeChatOptions IOptions<WeChatOptions>.Value => this;
/// <summary>
/// 微信公众号AppId
/// </summary>
public string WeiXinAppId { get; set; } = string.Empty;
/// <summary>
///
/// </summary>
public string WeiXinAppSecret { get; set; } = string.Empty;
/// <summary>
///
/// </summary>
public string WeiXinEncodingAesKey { get; set; } = string.Empty;
/// <summary>
///
/// </summary>
public string WeiXinToken { get; set; } = string.Empty;
/// <summary>
/// 微信小程序
/// </summary>
public string WxOpenAppId { get; set; } = string.Empty;
/// <summary>
///
/// </summary>
public string WxOpenAppSecret { get; set; } = string.Empty;
/// <summary>
///
/// </summary>
public string WxOpenToken { get; set; } = string.Empty;
/// <summary>
///
/// </summary>
public string WxOpenEncodingAESKey { get; set; } = string.Empty;
}
}