|
@@ -180,7 +180,12 @@ namespace Learun.Application.WebApi.Modules |
|
|
var annfile = annexesFileIbll.GetEntityByFolderId(item.Photo); |
|
|
var annfile = annexesFileIbll.GetEntityByFolderId(item.Photo); |
|
|
if (annfile != null && annfile.F_FilePath != null) |
|
|
if (annfile != null && annfile.F_FilePath != null) |
|
|
{ |
|
|
{ |
|
|
item.Photo = webrootpath + item.Photo.Substring(item.Photo.IndexOf("Resource") - 1); |
|
|
|
|
|
|
|
|
if (annfile.F_FilePath.IndexOf("Resource") != -1) |
|
|
|
|
|
{ |
|
|
|
|
|
item.Photo = webrootpath + annfile.F_FilePath.Substring(annfile.F_FilePath.IndexOf("Resource") - 1); |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
item.Photo = ""; |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
item.Photo = ""; |
|
|
item.Photo = ""; |
|
|