{ //如果前端不代理的话,又是axios请求的话,需要添加以下代码 "CorsAccessorSettings": { "WithExposedHeaders": [ "Content-Disposition" ] }, //动态api配置 //"DynamicApiControllerSettings": { // "DefaultRoutePrefix": "api666" //默认路由前缀,默认api,但是如果action上面写死route的话 就无效了特性的优先级最高 //}, "SystemSettings": { "SuperAdminViewAllData": true, //超管是否可以查看所有租户的数据 "IsGlobalRequestLog": false //是否开启全局请求日志 }, "AppSettings": { "InjectSpecificationDocument": true //是否开启swagger }, "SpecificationDocumentSettings": { "DocumentTitle": "GDZZ", "DocExpansionState": "None", "GroupOpenApiInfos": [ { "Group": "Default", "Title": "GDZZ.NET通用权限管理平台", "Description": "前后端分离架构,开箱即用,紧随前沿技术。
作者By 蛋蛋,QQ群901868674
https://gitee.com/zhengguojing/admin-net-sqlsugar", "Version": "1.0.0" }, { "Group": "FlowCenter", "Title": "流程中心", "Description": "流程中心模块或插件。
作者By MonsterUncle,QQ295228902", "Version": "1.0.0" }, { //rm -rf "Group": "Application", "Title": "业务模块", "Description": "独立业务模块", "Version": "1.0.0" } ] }, "JWTSettings": { "ValidateIssuerSigningKey": true, // 是否验证密钥,bool 类型,默认true "IssuerSigningKey": "3c1cbc3f546eda35168c3aa3cb91780fbe703f0996c6d123ea96dc85c70bbc0a", // 密钥,string 类型,必须是复杂密钥,长度大于16 "ValidateIssuer": true, // 是否验证签发方,bool 类型,默认true "ValidIssuer": "GDZZ", // 签发方,string 类型 "ValidateAudience": true, // 是否验证签收方,bool 类型,默认true "ValidAudience": "GDZZ", // 签收方,string 类型 "ValidateLifetime": true, // 是否验证过期时间,bool 类型,默认true,建议true "ExpiredTime": 1440, // 过期时间,long 类型,单位分钟,默认20分钟 "ClockSkew": 5 // 过期时间容错值,long 类型,单位秒,默认5秒 }, "Cache": { "CacheType": "MemoryCache", // RedisCache "RedisConnectionString": "106.55.234.178:6379,password=zongzhi@2022,defaultDatabase=2" }, "SnowId": { "WorkerId": "1" // 取值范围0~63,默认1 }, "OAuth": { "Wechat": { "app_id": "wx422d9d8b4939f68c", "app_key": "3d9a78ee2808836e63311cc5fa1ee317", "redirect_uri": "http://127.0.0.1:56868/oauth/wechatcallback", "scope": "snsapi_userinfo" } }, "SenparcWeixinSetting": { //注意:所有的字符串值都可能被用于字典索引,因此请勿留空字符串(但可以根据需要,删除对应的整条设置)! //微信全局 "IsDebug": true, //以下不使用的参数可以删除,key 修改后将会失效 //公众号 "Token": "微信支付不需要", "EncodingAESKey": "微信支付不需要", "WeixinAppId": "wx422d9d8b4939f68c", "WeixinAppSecret": "3d9a78ee2808836e63311cc5fa1ee317", //微信支付V3(新版) "TenPayV3_AppId": "wx422d9d8b4939f68c", "TenPayV3_AppSecret": "3d9a78ee2808836e63311cc5fa1ee317", "TenPayV3_SubAppId": "", "TenPayV3_SubAppSecret": "", "TenPayV3_MchId": "xxxxxxxx", "TenPayV3_SubMchId": "", //子商户,没有可留空 "TenPayV3_Key": "79xxxxxxxxxxxxxxxxxxxxxxxxxxx", "TenPayV3_CertPath": "可留空", //支付证书物理路径,如:D:\\cert\\apiclient_cert.p12 "TenPayV3_CertSecret": "可留空", //支付证书密码(原始密码和 MchId 相同) "TenPayV3_TenpayNotify": "http://sdk.weixin.senparc.com/TenpayV3/PayNotifyUrl", //http://YourDomainName/TenpayV3/PayNotifyUrl "TenPayV3_PrivateKey": "MIIExxxxxxxxxxxxxxxxx", //(新)证书私钥 "TenPayV3_SerialNumber": "5Bxxxxxxxxxxxxxxxxxxxxxx", //证书序列号 "TenPayV3_ApiV3Key": "xxxxxxxxxxxxxxxxxxxxxxxx", //(新)APIv3 密钥 //如果不设置TenPayV3_WxOpenTenpayNotify,默认在 TenPayV3_TenpayNotify 的值最后加上 "WxOpen" "TenPayV3_WxOpenTenpayNotify": "http://sdk.weixin.senparc.com/TenpayV3/PayNotifyUrlWxOpen" //http://YourDomainName/TenpayV3/PayNotifyUrlWxOpen }, "UploadFile": { // 阿里云OSS配置 "Aliyun": { "path": "GDZZ/Upload", "maxSize": 1048576, "contentType": [ "image/jpg", "image/png", "image/jpeg", "image/gif", "image/bmp", "text/plain", "application/pdf", "application/msword", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.presentationml.presentation" ] }, // 头像 "Avatar": { "path": "Upload/Avatar", "maxSize": 1048576, "contentType": [ "image/jpg", "image/png", "image/jpeg", "image/gif" ] }, // 文档 "Document": { "path": "Upload/Document", "maxSize": 1048576, "contentType": [ "image/jpg", "image/png", "image/jpeg", "image/gif", "image/bmp", "text/plain", "application/pdf", "application/msword", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.presentationml.presentation" ] }, // 商店 "Shop": { "path": "Upload/Shop", "maxSize": 1048576, "contentType": [ "image/jpg", "image/png", "image/jpeg", "image/gif" ] }, // 富文本 "Editor": { "path": "Upload/Editor", "maxSize": 1048576, "contentType": [ "image/jpg", "image/png", "image/jpeg", "image/gif" ] }, // 默认 "Default": { "path": "Upload/Default", "maxSize": 41943040, "contentType": [ "image/jpg", "image/png", "image/jpeg", "image/gif", "image/bmp", "text/plain", "application/pdf", "application/msword", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.presentationml.presentation" ] } } }