zhengyuxuan
2025-04-02 e7d1ef3eef4dcbec4f7fae27542e94cc0bbf89c8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
namespace LifePayment.Domain.Shared
{
    public class WxMiniAppOption
    {
        /// <summary>
        /// 小程序版本。正式版为 "release",体验版为 "trial",开发版为 "develop"
        /// </summary>
        public string EnvVersion { get; set; } = "release";
 
        /// <summary>
        /// 扫码注册/登录入口页
        /// </summary>
        public string SignUpPage { get; set; }
 
        /// <summary>
        /// 小程序AppId
        /// </summary>
        public string AppId { get; set; }
 
        /// <summary>
        /// 小程序Secret
        /// </summary>
        public string Secret { get; set; }
 
        /// <summary>
        /// Url
        /// </summary>
        public string Url { get; set; }
 
        /// <summary>
        /// 默认是true,检查page 是否存在,为 true 时 page 必须是已经发布的小程序存在的页面(否则报错);
        /// 为 false 时允许小程序未发布或者 page 不存在, 但page 有数量上限(60000个)请勿滥用。
        /// </summary>
        public bool CheckPath { get; set; } = true;
    }
}