From 2da783dda32cedc3026fadbcd4ad5fbe3828bbe4 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 17 Aug 2019 16:24:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E7=BD=91=E7=AB=99?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E8=AF=BB=E5=8F=96=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.DataAccess/Dict.cs | 6 ++++++ Bootstrap.DataAccess/Helper/DictHelper.cs | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/Bootstrap.DataAccess/Dict.cs b/Bootstrap.DataAccess/Dict.cs index 2d11aa8b..e6b809fd 100644 --- a/Bootstrap.DataAccess/Dict.cs +++ b/Bootstrap.DataAccess/Dict.cs @@ -186,5 +186,11 @@ namespace Bootstrap.DataAccess /// /// public string RetrieveImagesLibUrl() => DictHelper.RetrieveDicts().FirstOrDefault(d => d.Category == "系统设置" && d.Name == "验证码图床" && d.Define == 0)?.Code ?? "http://images.sdgxgz.com/"; + + /// + /// 获得 数据库标题是否显示 + /// + /// + public bool RetrieveCardTitleStatus() => (DictHelper.RetrieveDicts().FirstOrDefault(d => d.Category == "网站设置" && d.Name == "卡片标题状态" && d.Define == 0)?.Code ?? "") == "1"; } } diff --git a/Bootstrap.DataAccess/Helper/DictHelper.cs b/Bootstrap.DataAccess/Helper/DictHelper.cs index 30e82fc0..3ae25900 100644 --- a/Bootstrap.DataAccess/Helper/DictHelper.cs +++ b/Bootstrap.DataAccess/Helper/DictHelper.cs @@ -202,5 +202,11 @@ namespace Bootstrap.DataAccess /// /// public static string RetrieveImagesLibUrl() => DbContextManager.Create().RetrieveImagesLibUrl(); + + /// + /// 获得数据区卡片标题是否显示 + /// + /// + public static bool RetrieveCardTitleStatus() => DbContextManager.Create().RetrieveCardTitleStatus(); } }