fix: 修复前台用户头像后台链接
This commit is contained in:
parent
25fae681ae
commit
1ff9891331
Binary file not shown.
|
@ -65,14 +65,8 @@ class DictService : IDict
|
||||||
|
|
||||||
private string? GetUrlByName(string appId, string dictName)
|
private string? GetUrlByName(string appId, string dictName)
|
||||||
{
|
{
|
||||||
string? url = null;
|
|
||||||
var dicts = GetAll();
|
var dicts = GetAll();
|
||||||
var appName = dicts.FirstOrDefault(d => d.Category == "应用程序" && d.Code == appId && d.Define == EnumDictDefine.System)?.Name;
|
return dicts.FirstOrDefault(d => d.Category == appId && d.Name == dictName && d.Define == EnumDictDefine.Customer)?.Code;
|
||||||
if (!string.IsNullOrEmpty(appName))
|
|
||||||
{
|
|
||||||
url = dicts.FirstOrDefault(d => d.Category == appName && d.Name == dictName && d.Define == EnumDictDefine.Customer)?.Code;
|
|
||||||
}
|
|
||||||
return url;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public string RetrieveIconFolderPath()
|
public string RetrieveIconFolderPath()
|
||||||
|
|
Loading…
Reference in New Issue