zuohuaijun hace 4 años
padre
commit
317091144b

+ 5 - 0
Admin.NET/Admin.NET.Core/AdminNETConfig.json

@@ -13,6 +13,11 @@
   "AppSettings": {
     "InjectSpecificationDocument": true // 生产环境是否开启Swagger
   },
+  "DynamicApiControllerSettings": {
+    "LowercaseRoute": false,
+    "KeepName": true,
+    "AsLowerCamelCase": true // 小驼峰路由路径
+  },
   "JWTSettings": {
     "ValidateIssuerSigningKey": true, // 是否验证密钥,bool 类型,默认true
     "IssuerSigningKey": "3c1cbc3f546eda35168c3aa3cb91780fbe703f0996c6d123ea96dc85c70bbc0a", // 密钥,string 类型,必须是复杂密钥,长度大于16

+ 1 - 0
Admin.NET/Admin.NET.Core/Service/Config/SysConfigService.cs

@@ -107,6 +107,7 @@ public class SysConfigService : IDynamicApiController, ITransient
     /// </summary>
     /// <param name="code"></param>
     /// <returns></returns>
+    [NonAction]
     public async Task<string> GetConfigCache(string code)
     {
         var value = await _sysCacheService.GetStringAsync(code);