feat: 客户端模拟登陆时使用本站头像

This commit is contained in:
Argo Zhang 2019-07-09 20:12:57 +08:00
parent 7c50c3ca6b
commit ed5ce82486
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
2 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ namespace Bootstrap.Client.Models
// set Icon
var icon = $"/{DbHelper.RetrieveIconFolderPath().Trim('~', '/')}/{user.Icon}";
Icon = $"{authHost.TrimEnd('/')}{icon}";
Icon = string.IsNullOrEmpty(ConfigurationManager.GetValue("SimulateUserName", string.Empty)) ? $"{authHost.TrimEnd('/')}{icon}" : "/images/admin.jpg";
if (!string.IsNullOrEmpty(user.Css)) Theme = user.Css;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB