fix: 字典表获取网站标题与页脚判断错误

This commit is contained in:
Argo Zhang 2019-09-06 12:23:19 +08:00
parent 90a42bcf88
commit 9043a6d155
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ namespace Bootstrap.DataAccess
{
// 优先查找配置的应用程序网站标题
var code = DbHelper.RetrieveTitle();
if (code == "未设置") code = DictHelper.RetrieveDicts().FirstOrDefault(d => d.Name == "网站标题" && d.Category == "网站设置" && d.Define == 0)?.Code ?? "后台管理系统";
if (code == "网站标题未设置") code = DictHelper.RetrieveDicts().FirstOrDefault(d => d.Name == "网站标题" && d.Category == "网站设置" && d.Define == 0)?.Code ?? "后台管理系统";
return code;
}
@ -80,7 +80,7 @@ namespace Bootstrap.DataAccess
{
// 优先查找配置的应用程序网站标题
var code = DbHelper.RetrieveFooter();
if (code == "未设置") code = DictHelper.RetrieveDicts().FirstOrDefault(d => d.Name == "网站页脚" && d.Category == "网站设置" && d.Define == 0)?.Code ?? "2016 © 通用后台管理系统";
if (code == "网站页脚未设置") code = DictHelper.RetrieveDicts().FirstOrDefault(d => d.Name == "网站页脚" && d.Category == "网站设置" && d.Define == 0)?.Code ?? "2016 © 通用后台管理系统";
return code;
}