【新增】实现支付宝小程序适配。

This commit is contained in:
jianweie
2024-04-22 23:04:58 +08:00
parent 8a4fe681cb
commit a6ad9274e1
53 changed files with 13032 additions and 107 deletions

View File

@@ -0,0 +1,61 @@
using System;
using Microsoft.Extensions.Options;
namespace CoreCms.Net.Model.Options
{
/// <summary>
/// 支付宝配置信息数据
/// </summary>
public partial class AliPayOptions : IOptions<AliPayOptions>
{
AliPayOptions IOptions<AliPayOptions>.Value => this;
/// <summary>
/// AppId
/// </summary>
public string AppId { get; set; } = string.Empty;
/// <summary>
/// 应用私钥
/// </summary>
public string AppSecret { get; set; } = string.Empty;
/// <summary>
/// 支付宝公钥
/// </summary>
public string AliPublicKey { get; set; } = string.Empty;
/// <summary>
/// 应用公钥
/// </summary>
public string AppPublicKey { get; set; } = string.Empty;
/// <summary>
/// 回调地址
/// </summary>
public string RedirectUrl { get; set; } = string.Empty;
/// <summary>
/// 阿里访问令牌刷新
/// </summary>
public string AliAccessTokenRefresh { get; set; } = string.Empty;
/// <summary>
/// oauth2授权地址
/// </summary>
public string AppConnectUrl { get; set; } = string.Empty;
/// <summary>
/// 支付宝授权类型
/// </summary>
public string AppAuthToken { get; set; } = string.Empty;
/// <summary>
/// 支付宝通用接口地址
/// </summary>
public string AliPublicApi { get; set; } = string.Empty;
/// <summary>
/// 外部H5唤起支付宝客户端进行实名认证接口地址
/// </summary>
public string AliPayAppAuth { get; set; } = string.Empty;
/// <summary>
/// 接口内容加密方式AESKey
/// </summary>
public string AESKey { get; set; } = string.Empty;
}
}