fix: 修复前台用户头像后台链接

This commit is contained in:
Argo-Tianyi 2022-01-24 01:13:29 +08:00
parent 25fae681ae
commit 1ff9891331
2 changed files with 1 additions and 7 deletions

View File

@ -65,14 +65,8 @@ class DictService : IDict
private string? GetUrlByName(string appId, string dictName)
{
string? url = null;
var dicts = GetAll();
var appName = dicts.FirstOrDefault(d => d.Category == "应用程序" && d.Code == appId && d.Define == EnumDictDefine.System)?.Name;
if (!string.IsNullOrEmpty(appName))
{
url = dicts.FirstOrDefault(d => d.Category == appName && d.Name == dictName && d.Define == EnumDictDefine.Customer)?.Code;
}
return url;
return dicts.FirstOrDefault(d => d.Category == appId && d.Name == dictName && d.Define == EnumDictDefine.Customer)?.Code;
}
public string RetrieveIconFolderPath()