diff --git a/Bootstrap.Admin/HealthChecks/DBHealthCheck.cs b/Bootstrap.Admin/HealthChecks/DBHealthCheck.cs index d5e8a2c6..7a08914d 100644 --- a/Bootstrap.Admin/HealthChecks/DBHealthCheck.cs +++ b/Bootstrap.Admin/HealthChecks/DBHealthCheck.cs @@ -49,8 +49,8 @@ namespace Bootstrap.Admin.HealthChecks // 检查 Admin 账户权限 var user = UserHelper.RetrieveUserByUserName("Admin"); var roles = RoleHelper.RetrievesByUserName("Admin"); - var dicts = DictHelper.RetrieveDicts(); var menus = MenuHelper.RetrieveMenusByUserName("Admin"); + var dicts = DictHelper.RetrieveDicts(); var data = new Dictionary() { @@ -64,7 +64,7 @@ namespace Bootstrap.Admin.HealthChecks }; var v = dicts.Any() && user != null && roles.Any() && menus.Any(); - return v ? Task.FromResult(HealthCheckResult.Healthy("Ok", data)) : Task.FromResult(HealthCheckResult.Degraded("Failed")); + return v ? Task.FromResult(HealthCheckResult.Healthy("Ok", data)) : Task.FromResult(HealthCheckResult.Degraded("Failed", null, data)); } } }