40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
|
using MyCode.Project.Infrastructure.Common;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace MyCode.Project.Infrastructure.Config
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 微信配置
|
|||
|
/// </summary>
|
|||
|
public class WechatConfig
|
|||
|
{
|
|||
|
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// API授权域名。例如:http://www.baidu.com
|
|||
|
/// </summary>
|
|||
|
public string ApiAuthDomain { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 授权方式。
|
|||
|
/// snsapi_base:不弹出授权页面,直接跳转,只能获取用户openid;
|
|||
|
/// snsapi_userinfo:出授权页面,可通过openid拿到昵称、性别、所在地。并且,即使在未关注的情况下,只要用户授权,也能获取其信息.
|
|||
|
/// </summary>
|
|||
|
public string Scope { get; set; } = "snsapi_base";
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 微信公众号名
|
|||
|
/// </summary>
|
|||
|
public string WechatPublic { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 打开小程序的网站地址
|
|||
|
/// </summary>
|
|||
|
public string AppHtml { get; set; }
|
|||
|
}
|
|||
|
}
|